Lines Matching refs:aead

87 static int crypto_ccm_setkey(struct crypto_aead *aead, const u8 *key,  in crypto_ccm_setkey()  argument
90 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_setkey()
96 crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
103 crypto_ahash_set_flags(mac, crypto_aead_get_flags(aead) & in crypto_ccm_setkey()
130 struct crypto_aead *aead = crypto_aead_reqtfm(req); in format_input() local
135 m = crypto_aead_authsize(aead); in format_input()
172 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_auth() local
173 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_auth()
230 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt_done() local
237 crypto_aead_authsize(aead), 1); in crypto_ccm_encrypt_done()
287 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_ccm_encrypt() local
288 struct crypto_ccm_ctx *ctx = crypto_aead_ctx(aead); in crypto_ccm_encrypt()
319 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()
608 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4309_crypt() local
609 struct crypto_rfc4309_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4309_crypt()
673 struct crypto_aead *aead; in crypto_rfc4309_init_tfm() local
676 aead = crypto_spawn_aead(spawn); in crypto_rfc4309_init_tfm()
677 if (IS_ERR(aead)) in crypto_rfc4309_init_tfm()
678 return PTR_ERR(aead); in crypto_rfc4309_init_tfm()
680 ctx->child = aead; in crypto_rfc4309_init_tfm()
682 align = crypto_aead_alignmask(aead); in crypto_rfc4309_init_tfm()
687 ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) + in crypto_rfc4309_init_tfm()