Lines Matching refs:aead
90 static int crypto_ccm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_ccm_setkey() argument
93 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_setkey()
99 crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
102 crypto_aead_set_flags(aead, crypto_skcipher_get_flags(ctr) & in crypto_ccm_setkey()
108 crypto_ahash_set_flags(mac, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
111 crypto_aead_set_flags(aead, crypto_ahash_get_flags(mac) & in crypto_ccm_setkey()
140 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input() local
145 m = crypto_aead_authsize(aead); in format_input()
182 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_auth() local
183 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_auth()
240 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt_done() local
247 crypto_aead_authsize(aead), 1); in crypto_ccm_encrypt_done()
297 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt() local
298 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_encrypt()
329 crypto_aead_authsize(aead), 1); in crypto_ccm_encrypt()
338 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt_done() local
339 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt_done()
357 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_decrypt() local
358 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_decrypt()
362 unsigned int authsize = crypto_aead_authsize(aead); in crypto_ccm_decrypt()
660 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4309_crypt() local
661 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4309_crypt()
725 struct crypto_aead *aead; in crypto_rfc4309_init_tfm() local
728 aead = crypto_spawn_aead(spawn); in crypto_rfc4309_init_tfm()
729 if (IS_ERR(aead)) in crypto_rfc4309_init_tfm()
730 return PTR_ERR(aead); in crypto_rfc4309_init_tfm()
732 ctx->child = aead; in crypto_rfc4309_init_tfm()
734 align = crypto_aead_alignmask(aead); in crypto_rfc4309_init_tfm()
739 ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) + in crypto_rfc4309_init_tfm()