Lines Matching refs:authenc
84 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key, in crypto_authenc_setkey() argument
87 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey()
97 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
100 crypto_aead_set_flags(authenc, crypto_ahash_get_flags(auth) & in crypto_authenc_setkey()
107 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
110 crypto_aead_set_flags(authenc, crypto_skcipher_get_flags(enc) & in crypto_authenc_setkey()
118 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in crypto_authenc_setkey()
125 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_done() local
126 struct aead_instance *inst = aead_alg_instance(authenc); in authenc_geniv_ahash_done()
136 crypto_aead_authsize(authenc), 1); in authenc_geniv_ahash_done()
144 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv() local
145 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_genicv()
146 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_genicv()
168 crypto_aead_authsize(authenc), 1); in crypto_authenc_genicv()
189 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_copy_assoc() local
190 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_copy_assoc()
204 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_encrypt() local
205 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_encrypt()
206 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_encrypt()
242 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt_tail() local
243 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_decrypt_tail()
244 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt_tail()
250 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt_tail()
290 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt() local
291 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt()
292 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_decrypt()
293 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt()