Lines Matching refs:aead
9 #include <crypto/internal/aead.h>
44 struct crypto_aead_spawn aead;
92 static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key,
95 struct crypto_gcm_ctx *ctx = crypto_aead_ctx(aead);
110 crypto_skcipher_set_flags(ctr, crypto_aead_get_flags(aead) &
138 crypto_ahash_set_flags(ghash, crypto_aead_get_flags(aead) &
180 struct crypto_aead *aead = crypto_aead_reqtfm(req);
181 struct crypto_gcm_ctx *ctx = crypto_aead_ctx(aead);
414 struct crypto_aead *aead = crypto_aead_reqtfm(req);
420 crypto_aead_authsize(aead), 1);
468 struct crypto_aead *aead = crypto_aead_reqtfm(req);
471 unsigned int authsize = crypto_aead_authsize(aead);
503 struct crypto_aead *aead = crypto_aead_reqtfm(req);
506 unsigned int authsize = crypto_aead_authsize(aead);
725 struct crypto_aead *aead = crypto_aead_reqtfm(req);
726 struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(aead);
794 struct crypto_aead *aead;
797 aead = crypto_spawn_aead(spawn);
798 if (IS_ERR(aead))
799 return PTR_ERR(aead);
801 ctx->child = aead;
803 align = crypto_aead_alignmask(aead);
808 ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) +
930 struct crypto_aead *aead = crypto_aead_reqtfm(req);
931 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(aead);
934 unsigned int authsize = crypto_aead_authsize(aead);
961 struct crypto_aead *aead = crypto_aead_reqtfm(req);
962 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(aead);
963 unsigned int authsize = crypto_aead_authsize(aead);
991 struct crypto_aead_spawn *spawn = &ictx->aead;
993 struct crypto_aead *aead;
998 aead = crypto_spawn_aead(spawn);
999 if (IS_ERR(aead))
1000 return PTR_ERR(aead);
1007 ctx->child = aead;
1010 align = crypto_aead_alignmask(aead);
1015 ALIGN(crypto_aead_reqsize(aead), crypto_tfm_ctx_alignment()) +
1021 crypto_free_aead(aead);
1037 crypto_drop_aead(&ctx->aead);
1060 err = crypto_grab_aead(&ctx->aead, aead_crypto_instance(inst),
1065 alg = crypto_spawn_aead_alg(&ctx->aead);