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()
121 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv() local
141 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv()
222 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt_tail() local
227 u8 *ihash = ohash + crypto_ahash_digestsize(auth); in crypto_authenc_esn_decrypt_tail()
269 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt() local
273 u8 *ihash = ohash + crypto_ahash_digestsize(auth); in crypto_authenc_esn_decrypt()
300 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt()
318 struct crypto_ahash *auth; in crypto_authenc_esn_init_tfm() local
323 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_esn_init_tfm()
324 if (IS_ERR(auth)) in crypto_authenc_esn_init_tfm()
325 return PTR_ERR(auth); in crypto_authenc_esn_init_tfm()
337 ctx->auth = auth; in crypto_authenc_esn_init_tfm()
341 ctx->reqoff = 2 * crypto_ahash_digestsize(auth); in crypto_authenc_esn_init_tfm()
348 crypto_ahash_reqsize(auth) + in crypto_authenc_esn_init_tfm()
358 crypto_free_ahash(auth); in crypto_authenc_esn_init_tfm()
366 crypto_free_ahash(ctx->auth); in crypto_authenc_esn_exit_tfm()
376 crypto_drop_ahash(&ctx->auth); in crypto_authenc_esn_free()
387 struct hash_alg_common *auth; in crypto_authenc_esn_create() local
400 err = crypto_grab_ahash(&ctx->auth, aead_crypto_instance(inst), in crypto_authenc_esn_create()
404 auth = crypto_spawn_ahash_alg(&ctx->auth); in crypto_authenc_esn_create()
405 auth_base = &auth->base; in crypto_authenc_esn_create()
432 inst->alg.maxauthsize = auth->digestsize; in crypto_authenc_esn_create()