Lines Matching refs:auth
29 struct crypto_ahash_spawn auth; member
35 struct crypto_ahash *auth; member
89 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_setkey() local
97 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey()
98 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
100 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_setkey()
101 crypto_aead_set_flags(authenc, crypto_ahash_get_flags(auth) & in crypto_authenc_setkey()
263 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_ahash_fb() local
269 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_ahash_fb()
270 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_ahash_fb()
272 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_ahash_fb()
302 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_ahash() local
308 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_ahash()
309 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_ahash()
311 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_ahash()
552 struct crypto_ahash *auth; in crypto_authenc_init_tfm() local
556 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_init_tfm()
557 if (IS_ERR(auth)) in crypto_authenc_init_tfm()
558 return PTR_ERR(auth); in crypto_authenc_init_tfm()
565 ctx->auth = auth; in crypto_authenc_init_tfm()
568 ctx->reqoff = ALIGN(2 * crypto_ahash_digestsize(auth) + in crypto_authenc_init_tfm()
569 crypto_ahash_alignmask(auth), in crypto_authenc_init_tfm()
570 crypto_ahash_alignmask(auth) + 1) + in crypto_authenc_init_tfm()
576 crypto_ahash_reqsize(auth) + in crypto_authenc_init_tfm()
584 crypto_free_ahash(auth); in crypto_authenc_init_tfm()
592 crypto_free_ahash(ctx->auth); in crypto_authenc_exit_tfm()
600 struct hash_alg_common *auth; in crypto_authenc_alloc() local
614 auth = ahash_attr_alg(tb[1], CRYPTO_ALG_TYPE_HASH, in crypto_authenc_alloc()
616 if (IS_ERR(auth)) in crypto_authenc_alloc()
617 return ERR_CAST(auth); in crypto_authenc_alloc()
619 auth_base = &auth->base; in crypto_authenc_alloc()
633 err = crypto_init_ahash_spawn(&ctx->auth, auth, inst); in crypto_authenc_alloc()
666 inst->alg.cra_aead.maxauthsize = auth->digestsize; in crypto_authenc_alloc()
685 crypto_drop_ahash(&ctx->auth); in crypto_authenc_alloc()
698 crypto_drop_ahash(&ctx->auth); in crypto_authenc_free()