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()
412 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_enc_copy_hash() local
418 crypto_aead_authsize(aead), 1); in gcm_enc_copy_hash()
466 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_verify() local
469 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify()
501 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_decrypt() local
504 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt()
721 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4106_crypt() local
722 struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4106_crypt()
790 struct crypto_aead *aead; in crypto_rfc4106_init_tfm() local
793 aead = crypto_spawn_aead(spawn); in crypto_rfc4106_init_tfm()
794 if (IS_ERR(aead)) in crypto_rfc4106_init_tfm()
795 return PTR_ERR(aead); in crypto_rfc4106_init_tfm()
797 ctx->child = aead; in crypto_rfc4106_init_tfm()
799 align = crypto_aead_alignmask(aead); in crypto_rfc4106_init_tfm()
804 ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) + in crypto_rfc4106_init_tfm()
926 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4543_crypt() local
927 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4543_crypt()
930 unsigned int authsize = crypto_aead_authsize(aead); in crypto_rfc4543_crypt()
957 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4543_copy_src_to_dst() local
958 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4543_copy_src_to_dst()
959 unsigned int authsize = crypto_aead_authsize(aead); in crypto_rfc4543_copy_src_to_dst()
987 struct crypto_aead_spawn *spawn = &ictx->aead; in crypto_rfc4543_init_tfm()
989 struct crypto_aead *aead; in crypto_rfc4543_init_tfm() local
994 aead = crypto_spawn_aead(spawn); in crypto_rfc4543_init_tfm()
995 if (IS_ERR(aead)) in crypto_rfc4543_init_tfm()
996 return PTR_ERR(aead); in crypto_rfc4543_init_tfm()
1003 ctx->child = aead; in crypto_rfc4543_init_tfm()
1006 align = crypto_aead_alignmask(aead); in crypto_rfc4543_init_tfm()
1011 ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) + in crypto_rfc4543_init_tfm()
1017 crypto_free_aead(aead); in crypto_rfc4543_init_tfm()
1033 crypto_drop_aead(&ctx->aead); in crypto_rfc4543_free()
1056 err = crypto_grab_aead(&ctx->aead, aead_crypto_instance(inst), in crypto_rfc4543_create()
1061 alg = crypto_spawn_aead_alg(&ctx->aead); in crypto_rfc4543_create()