Lines Matching refs:aead
41 struct crypto_aead_spawn aead; member
104 static int crypto_gcm_setkey(struct crypto_aead *aead, const u8 *key, in crypto_gcm_setkey() argument
107 struct crypto_gcm_ctx *ctx = crypto_aead_ctx(aead); in crypto_gcm_setkey()
122 crypto_ablkcipher_set_flags(ctr, crypto_aead_get_flags(aead) & in crypto_gcm_setkey()
129 crypto_aead_set_flags(aead, crypto_ablkcipher_get_flags(ctr) & in crypto_gcm_setkey()
157 crypto_ahash_set_flags(ghash, crypto_aead_get_flags(aead) & in crypto_gcm_setkey()
160 crypto_aead_set_flags(aead, crypto_ahash_get_flags(ghash) & in crypto_gcm_setkey()
191 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_init_crypt() local
192 struct crypto_gcm_ctx *ctx = crypto_aead_ctx(aead); in crypto_gcm_init_crypt()
508 struct crypto_aead *aead = crypto_aead_reqtfm(req); in gcm_enc_copy_hash() local
512 crypto_aead_authsize(aead), 1); in gcm_enc_copy_hash()
575 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_verify() local
578 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_verify()
619 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_gcm_decrypt() local
623 unsigned int authsize = crypto_aead_authsize(aead); in crypto_gcm_decrypt()
901 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4106_crypt() local
902 struct crypto_rfc4106_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4106_crypt()
938 struct crypto_aead *aead; in crypto_rfc4106_init_tfm() local
941 aead = crypto_spawn_aead(spawn); in crypto_rfc4106_init_tfm()
942 if (IS_ERR(aead)) in crypto_rfc4106_init_tfm()
943 return PTR_ERR(aead); in crypto_rfc4106_init_tfm()
945 ctx->child = aead; in crypto_rfc4106_init_tfm()
947 align = crypto_aead_alignmask(aead); in crypto_rfc4106_init_tfm()
950 ALIGN(crypto_aead_reqsize(aead), in crypto_rfc4106_init_tfm()
1106 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4543_done() local
1112 crypto_aead_authsize(aead), 1); in crypto_rfc4543_done()
1121 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4543_crypt() local
1122 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4543_crypt()
1129 unsigned int authsize = crypto_aead_authsize(aead); in crypto_rfc4543_crypt()
1184 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4543_copy_src_to_dst() local
1185 struct crypto_rfc4543_ctx *ctx = crypto_aead_ctx(aead); in crypto_rfc4543_copy_src_to_dst()
1186 unsigned int authsize = crypto_aead_authsize(aead); in crypto_rfc4543_copy_src_to_dst()
1197 struct crypto_aead *aead = crypto_aead_reqtfm(req); in crypto_rfc4543_encrypt() local
1214 crypto_aead_authsize(aead), 1); in crypto_rfc4543_encrypt()
1238 struct crypto_aead_spawn *spawn = &ictx->aead; in crypto_rfc4543_init_tfm()
1240 struct crypto_aead *aead; in crypto_rfc4543_init_tfm() local
1245 aead = crypto_spawn_aead(spawn); in crypto_rfc4543_init_tfm()
1246 if (IS_ERR(aead)) in crypto_rfc4543_init_tfm()
1247 return PTR_ERR(aead); in crypto_rfc4543_init_tfm()
1254 ctx->child = aead; in crypto_rfc4543_init_tfm()
1257 align = crypto_aead_alignmask(aead); in crypto_rfc4543_init_tfm()
1260 ALIGN(crypto_aead_reqsize(aead), in crypto_rfc4543_init_tfm()
1267 crypto_free_aead(aead); in crypto_rfc4543_init_tfm()
1305 spawn = &ctx->aead; in crypto_rfc4543_alloc()
1379 crypto_drop_aead(&ctx->aead); in crypto_rfc4543_free()