Lines Matching refs:auth
31 struct crypto_ahash_spawn auth; member
37 struct crypto_ahash *auth; member
67 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_setkey() local
75 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK); in crypto_authenc_esn_setkey()
76 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc_esn) & in crypto_authenc_esn_setkey()
78 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_esn_setkey()
79 crypto_aead_set_flags(authenc_esn, crypto_ahash_get_flags(auth) & in crypto_authenc_esn_setkey()
106 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv_tail() local
108 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv_tail()
139 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv() local
141 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv()
160 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv()
239 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt_tail() local
241 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_decrypt_tail()
245 u8 *ihash = ohash + crypto_ahash_digestsize(auth); in crypto_authenc_esn_decrypt_tail()
283 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt() local
285 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_decrypt()
288 u8 *ihash = ohash + crypto_ahash_digestsize(auth); in crypto_authenc_esn_decrypt()
315 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt()
333 struct crypto_ahash *auth; in crypto_authenc_esn_init_tfm() local
338 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_esn_init_tfm()
339 if (IS_ERR(auth)) in crypto_authenc_esn_init_tfm()
340 return PTR_ERR(auth); in crypto_authenc_esn_init_tfm()
352 ctx->auth = auth; in crypto_authenc_esn_init_tfm()
356 ctx->reqoff = ALIGN(2 * crypto_ahash_digestsize(auth), in crypto_authenc_esn_init_tfm()
357 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_init_tfm()
364 crypto_ahash_reqsize(auth) + in crypto_authenc_esn_init_tfm()
374 crypto_free_ahash(auth); in crypto_authenc_esn_init_tfm()
382 crypto_free_ahash(ctx->auth); in crypto_authenc_esn_exit_tfm()
392 crypto_drop_ahash(&ctx->auth); in crypto_authenc_esn_free()
401 struct hash_alg_common *auth; in crypto_authenc_esn_create() local
415 auth = ahash_attr_alg(tb[1], CRYPTO_ALG_TYPE_HASH, in crypto_authenc_esn_create()
417 if (IS_ERR(auth)) in crypto_authenc_esn_create()
418 return PTR_ERR(auth); in crypto_authenc_esn_create()
420 auth_base = &auth->base; in crypto_authenc_esn_create()
434 err = crypto_init_ahash_spawn(&ctx->auth, auth, in crypto_authenc_esn_create()
468 inst->alg.maxauthsize = auth->digestsize; in crypto_authenc_esn_create()
491 crypto_drop_ahash(&ctx->auth); in crypto_authenc_esn_create()