Lines Matching refs:aead
88 static int crypto_ccm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_ccm_setkey() argument
91 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_setkey()
97 crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
104 crypto_ahash_set_flags(mac, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
131 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input() local
136 m = crypto_aead_authsize(aead); in format_input()
173 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_auth() local
174 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_auth()
231 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt_done() local
238 crypto_aead_authsize(aead), 1); in crypto_ccm_encrypt_done()
288 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt() local
289 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_encrypt()
320 crypto_aead_authsize(aead), 1); in crypto_ccm_encrypt()
328 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt_done() local
329 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt_done()
347 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt() local
348 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_decrypt()
352 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt()
606 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4309_crypt() local
607 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4309_crypt()
671 struct crypto_aead *aead; in crypto_rfc4309_init_tfm() local
674 aead = crypto_spawn_aead(spawn); in crypto_rfc4309_init_tfm()
675 if (IS_ERR(aead)) in crypto_rfc4309_init_tfm()
676 return PTR_ERR(aead); in crypto_rfc4309_init_tfm()
678 ctx->child = aead; in crypto_rfc4309_init_tfm()
680 align = crypto_aead_alignmask(aead); in crypto_rfc4309_init_tfm()
685 ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) + in crypto_rfc4309_init_tfm()