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()
74 crypto_aead_set_flags(authenc_esn, crypto_ahash_get_flags(auth) & in crypto_authenc_esn_setkey()
102 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv_tail() local
104 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv_tail()
135 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv() local
137 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv()
156 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv()
238 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt_tail() local
240 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_decrypt_tail()
244 u8 *ihash = ohash + crypto_ahash_digestsize(auth); in crypto_authenc_esn_decrypt_tail()
287 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt() local
289 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_decrypt()
292 u8 *ihash = ohash + crypto_ahash_digestsize(auth); in crypto_authenc_esn_decrypt()
319 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt()
337 struct crypto_ahash *auth; in crypto_authenc_esn_init_tfm() local
342 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_esn_init_tfm()
343 if (IS_ERR(auth)) in crypto_authenc_esn_init_tfm()
344 return PTR_ERR(auth); in crypto_authenc_esn_init_tfm()
356 ctx->auth = auth; in crypto_authenc_esn_init_tfm()
360 ctx->reqoff = ALIGN(2 * crypto_ahash_digestsize(auth), in crypto_authenc_esn_init_tfm()
361 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_init_tfm()
368 crypto_ahash_reqsize(auth) + in crypto_authenc_esn_init_tfm()
378 crypto_free_ahash(auth); in crypto_authenc_esn_init_tfm()
386 crypto_free_ahash(ctx->auth); in crypto_authenc_esn_exit_tfm()
396 crypto_drop_ahash(&ctx->auth); in crypto_authenc_esn_free()
405 struct hash_alg_common *auth; in crypto_authenc_esn_create() local
419 auth = ahash_attr_alg(tb[1], CRYPTO_ALG_TYPE_HASH, in crypto_authenc_esn_create()
422 if (IS_ERR(auth)) in crypto_authenc_esn_create()
423 return PTR_ERR(auth); in crypto_authenc_esn_create()
425 auth_base = &auth->base; in crypto_authenc_esn_create()
439 err = crypto_init_ahash_spawn(&ctx->auth, auth, in crypto_authenc_esn_create()
475 inst->alg.maxauthsize = auth->digestsize; in crypto_authenc_esn_create()
498 crypto_drop_ahash(&ctx->auth); in crypto_authenc_esn_create()