Lines Matching refs:authenc

81 static int crypto_authenc_setkey(struct crypto_aead *authenc, const u8 *key,  in crypto_authenc_setkey()  argument
84 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_setkey()
94 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
97 crypto_aead_set_flags(authenc, crypto_ahash_get_flags(auth) & in crypto_authenc_setkey()
104 crypto_ablkcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
107 crypto_aead_set_flags(authenc, crypto_ablkcipher_get_flags(enc) & in crypto_authenc_setkey()
114 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in crypto_authenc_setkey()
121 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_done() local
122 struct aead_instance *inst = aead_alg_instance(authenc); in authenc_geniv_ahash_done()
132 crypto_aead_authsize(authenc), 1); in authenc_geniv_ahash_done()
140 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv() local
141 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_genicv()
142 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_genicv()
164 crypto_aead_authsize(authenc), 1); in crypto_authenc_genicv()
185 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_copy_assoc() local
186 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_copy_assoc()
197 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_encrypt() local
198 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_encrypt()
199 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_encrypt()
237 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt_tail() local
238 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_decrypt_tail()
239 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt_tail()
245 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt_tail()
288 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt() local
289 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt()
290 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_decrypt()
291 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt()