Lines Matching refs:skey
42 symmetric_key skey;
53 des_setup(pkey, 8, 0, &skey);
54 des_ecb_encrypt(clear, cypher, &skey);
55 des_done(&skey);
88 symmetric_key *skey;
89 skey = os_malloc(sizeof(*skey));
90 if (skey == NULL)
92 if (aes_setup(key, len, 0, skey) != CRYPT_OK) {
93 os_free(skey);
96 return skey;
102 symmetric_key *skey = ctx;
103 return aes_ecb_encrypt(plain, crypt, skey) == CRYPT_OK ? 0 : -1;
109 symmetric_key *skey = ctx;
110 aes_done(skey);
111 os_free(skey);
117 symmetric_key *skey;
118 skey = os_malloc(sizeof(*skey));
119 if (skey == NULL)
121 if (aes_setup(key, len, 0, skey) != CRYPT_OK) {
122 os_free(skey);
125 return skey;
131 symmetric_key *skey = ctx;
132 return aes_ecb_encrypt(plain, (u8 *) crypt, skey) == CRYPT_OK ? 0 : -1;
138 symmetric_key *skey = ctx;
139 aes_done(skey);
140 os_free(skey);