Lines Matching refs:ak
159 AES_KEY *ak; in aes_encrypt_init() local
160 ak = os_malloc(sizeof(*ak)); in aes_encrypt_init()
161 if (ak == NULL) in aes_encrypt_init()
163 if (AES_set_encrypt_key(key, 8 * len, ak) < 0) { in aes_encrypt_init()
164 os_free(ak); in aes_encrypt_init()
167 return ak; in aes_encrypt_init()
185 AES_KEY *ak; in aes_decrypt_init() local
186 ak = os_malloc(sizeof(*ak)); in aes_decrypt_init()
187 if (ak == NULL) in aes_decrypt_init()
189 if (AES_set_decrypt_key(key, 8 * len, ak) < 0) { in aes_decrypt_init()
190 os_free(ak); in aes_decrypt_init()
193 return ak; in aes_decrypt_init()