Lines Matching refs:auth
26 struct crypto_ahash_spawn auth; member
32 struct crypto_ahash *auth; member
62 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_setkey() local
70 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK); in crypto_authenc_esn_setkey()
71 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc_esn) & in crypto_authenc_esn_setkey()
73 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_esn_setkey()
92 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv_tail() local
94 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv_tail()
125 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv() local
127 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv()
146 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv()
228 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt_tail() local
230 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_decrypt_tail()
234 u8 *ihash = ohash + crypto_ahash_digestsize(auth); in crypto_authenc_esn_decrypt_tail()
277 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt() local
279 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_decrypt()
282 u8 *ihash = ohash + crypto_ahash_digestsize(auth); in crypto_authenc_esn_decrypt()
309 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt()
327 struct crypto_ahash *auth; in crypto_authenc_esn_init_tfm() local
332 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_esn_init_tfm()
333 if (IS_ERR(auth)) in crypto_authenc_esn_init_tfm()
334 return PTR_ERR(auth); in crypto_authenc_esn_init_tfm()
346 ctx->auth = auth; in crypto_authenc_esn_init_tfm()
350 ctx->reqoff = ALIGN(2 * crypto_ahash_digestsize(auth), in crypto_authenc_esn_init_tfm()
351 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_init_tfm()
358 crypto_ahash_reqsize(auth) + in crypto_authenc_esn_init_tfm()
368 crypto_free_ahash(auth); in crypto_authenc_esn_init_tfm()
376 crypto_free_ahash(ctx->auth); in crypto_authenc_esn_exit_tfm()
386 crypto_drop_ahash(&ctx->auth); in crypto_authenc_esn_free()
396 struct hash_alg_common *auth; in crypto_authenc_esn_create() local
410 err = crypto_grab_ahash(&ctx->auth, aead_crypto_instance(inst), in crypto_authenc_esn_create()
414 auth = crypto_spawn_ahash_alg(&ctx->auth); in crypto_authenc_esn_create()
415 auth_base = &auth->base; in crypto_authenc_esn_create()
443 inst->alg.maxauthsize = auth->digestsize; in crypto_authenc_esn_create()