Lines Matching refs:aead

44 	struct crypto_aead_spawn aead;  member
92 static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_gcm_setkey() argument
95 struct crypto_gcm_ctx *ctx = crypto_aead_ctx(aead); in crypto_gcm_setkey()
110 crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_gcm_setkey()
138 crypto_ahash_set_flags(ghash, crypto_aead_get_flags(aead) & in crypto_gcm_setkey()
180 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_init_crypt() local
181 struct crypto_gcm_ctx *ctx = crypto_aead_ctx(aead); in crypto_gcm_init_crypt()
414 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_enc_copy_hash() local
420 crypto_aead_authsize(aead), 1); in gcm_enc_copy_hash()
468 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_verify() local
471 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify()
503 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_decrypt() local
506 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt()
725 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4106_crypt() local
726 struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4106_crypt()
794 struct crypto_aead *aead; in crypto_rfc4106_init_tfm() local
797 aead = crypto_spawn_aead(spawn); in crypto_rfc4106_init_tfm()
798 if (IS_ERR(aead)) in crypto_rfc4106_init_tfm()
799 return PTR_ERR(aead); in crypto_rfc4106_init_tfm()
801 ctx->child = aead; in crypto_rfc4106_init_tfm()
803 align = crypto_aead_alignmask(aead); in crypto_rfc4106_init_tfm()
808 ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) + in crypto_rfc4106_init_tfm()
930 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4543_crypt() local
931 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4543_crypt()
934 unsigned int authsize = crypto_aead_authsize(aead); in crypto_rfc4543_crypt()
961 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4543_copy_src_to_dst() local
962 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4543_copy_src_to_dst()
963 unsigned int authsize = crypto_aead_authsize(aead); in crypto_rfc4543_copy_src_to_dst()
991 struct crypto_aead_spawn *spawn = &ictx->aead; in crypto_rfc4543_init_tfm()
993 struct crypto_aead *aead; in crypto_rfc4543_init_tfm() local
998 aead = crypto_spawn_aead(spawn); in crypto_rfc4543_init_tfm()
999 if (IS_ERR(aead)) in crypto_rfc4543_init_tfm()
1000 return PTR_ERR(aead); in crypto_rfc4543_init_tfm()
1007 ctx->child = aead; in crypto_rfc4543_init_tfm()
1010 align = crypto_aead_alignmask(aead); in crypto_rfc4543_init_tfm()
1015 ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) + in crypto_rfc4543_init_tfm()
1021 crypto_free_aead(aead); in crypto_rfc4543_init_tfm()
1037 crypto_drop_aead(&ctx->aead); in crypto_rfc4543_free()
1060 err = crypto_grab_aead(&ctx->aead, aead_crypto_instance(inst), in crypto_rfc4543_create()
1065 alg = crypto_spawn_aead_alg(&ctx->aead); in crypto_rfc4543_create()