Lines Matching refs:auth

22 	struct crypto_ahash_spawn auth;  member
28 struct crypto_ahash *auth; member
86 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_setkey() local
94 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey()
95 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
97 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_setkey()
136 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_genicv() local
142 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv()
260 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_decrypt() local
266 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_decrypt()
284 struct crypto_ahash *auth; in crypto_authenc_init_tfm() local
288 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_init_tfm()
289 if (IS_ERR(auth)) in crypto_authenc_init_tfm()
290 return PTR_ERR(auth); in crypto_authenc_init_tfm()
297 ctx->auth = auth; in crypto_authenc_init_tfm()
305 crypto_ahash_reqsize(auth) + in crypto_authenc_init_tfm()
313 crypto_free_ahash(auth); in crypto_authenc_init_tfm()
321 crypto_free_ahash(ctx->auth); in crypto_authenc_exit_tfm()
330 crypto_drop_ahash(&ctx->auth); in crypto_authenc_free()
341 struct hash_alg_common *auth; in crypto_authenc_create() local
354 err = crypto_grab_ahash(&ctx->auth, aead_crypto_instance(inst), in crypto_authenc_create()
358 auth = crypto_spawn_ahash_alg(&ctx->auth); in crypto_authenc_create()
359 auth_base = &auth->base; in crypto_authenc_create()
367 ctx->reqoff = 2 * auth->digestsize; in crypto_authenc_create()
389 inst->alg.maxauthsize = auth->digestsize; in crypto_authenc_create()