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_skcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
107 crypto_aead_set_flags(authenc, crypto_skcipher_get_flags(enc) & in crypto_authenc_setkey()
115 crypto_aead_set_flags(authenc, CRYPTO_TFM_RES_BAD_KEY_LEN); in crypto_authenc_setkey()
122 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in authenc_geniv_ahash_done() local
123 struct aead_instance *inst = aead_alg_instance(authenc); in authenc_geniv_ahash_done()
133 crypto_aead_authsize(authenc), 1); in authenc_geniv_ahash_done()
141 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_genicv() local
142 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_genicv()
143 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_genicv()
165 crypto_aead_authsize(authenc), 1); in crypto_authenc_genicv()
186 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_copy_assoc() local
187 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_copy_assoc()
201 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_encrypt() local
202 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_encrypt()
203 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_encrypt()
239 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt_tail() local
240 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_decrypt_tail()
241 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt_tail()
247 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt_tail()
287 struct crypto_aead *authenc = crypto_aead_reqtfm(req); in crypto_authenc_decrypt() local
288 unsigned int authsize = crypto_aead_authsize(authenc); in crypto_authenc_decrypt()
289 struct aead_instance *inst = aead_alg_instance(authenc); in crypto_authenc_decrypt()
290 struct crypto_authenc_ctx *ctx = crypto_aead_ctx(authenc); in crypto_authenc_decrypt()