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()
107 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv_tail() local
109 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv_tail()
140 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_genicv() local
142 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_genicv()
161 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_genicv()
243 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt_tail() local
245 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_decrypt_tail()
249 u8 *ihash = ohash + crypto_ahash_digestsize(auth); in crypto_authenc_esn_decrypt_tail()
292 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_esn_decrypt() local
294 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_decrypt()
297 u8 *ihash = ohash + crypto_ahash_digestsize(auth); in crypto_authenc_esn_decrypt()
324 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_esn_decrypt()
342 struct crypto_ahash *auth; in crypto_authenc_esn_init_tfm() local
347 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_esn_init_tfm()
348 if (IS_ERR(auth)) in crypto_authenc_esn_init_tfm()
349 return PTR_ERR(auth); in crypto_authenc_esn_init_tfm()
361 ctx->auth = auth; in crypto_authenc_esn_init_tfm()
365 ctx->reqoff = ALIGN(2 * crypto_ahash_digestsize(auth), in crypto_authenc_esn_init_tfm()
366 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_esn_init_tfm()
373 crypto_ahash_reqsize(auth) + in crypto_authenc_esn_init_tfm()
383 crypto_free_ahash(auth); in crypto_authenc_esn_init_tfm()
391 crypto_free_ahash(ctx->auth); in crypto_authenc_esn_exit_tfm()
401 crypto_drop_ahash(&ctx->auth); in crypto_authenc_esn_free()
410 struct hash_alg_common *auth; in crypto_authenc_esn_create() local
424 auth = ahash_attr_alg(tb[1], CRYPTO_ALG_TYPE_HASH, in crypto_authenc_esn_create()
427 if (IS_ERR(auth)) in crypto_authenc_esn_create()
428 return PTR_ERR(auth); in crypto_authenc_esn_create()
430 auth_base = &auth->base; in crypto_authenc_esn_create()
444 err = crypto_init_ahash_spawn(&ctx->auth, auth, in crypto_authenc_esn_create()
480 inst->alg.maxauthsize = auth->digestsize; in crypto_authenc_esn_create()
503 crypto_drop_ahash(&ctx->auth); in crypto_authenc_esn_create()