Lines Matching refs:auth

28 	struct crypto_ahash_spawn auth;  member
34 struct crypto_ahash *auth; member
85 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_setkey() local
93 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey()
94 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
96 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_setkey()
97 crypto_aead_set_flags(authenc, crypto_ahash_get_flags(auth) & in crypto_authenc_setkey()
144 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_genicv() local
150 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_genicv()
151 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_genicv()
153 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv()
293 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_decrypt() local
299 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_decrypt()
300 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_decrypt()
302 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_decrypt()
320 struct crypto_ahash *auth; in crypto_authenc_init_tfm() local
325 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_init_tfm()
326 if (IS_ERR(auth)) in crypto_authenc_init_tfm()
327 return PTR_ERR(auth); in crypto_authenc_init_tfm()
339 ctx->auth = auth; in crypto_authenc_init_tfm()
348 crypto_ahash_reqsize(auth) + in crypto_authenc_init_tfm()
358 crypto_free_ahash(auth); in crypto_authenc_init_tfm()
366 crypto_free_ahash(ctx->auth); in crypto_authenc_exit_tfm()
376 crypto_drop_ahash(&ctx->auth); in crypto_authenc_free()
385 struct hash_alg_common *auth; in crypto_authenc_create() local
399 auth = ahash_attr_alg(tb[1], CRYPTO_ALG_TYPE_HASH, in crypto_authenc_create()
401 if (IS_ERR(auth)) in crypto_authenc_create()
402 return PTR_ERR(auth); in crypto_authenc_create()
404 auth_base = &auth->base; in crypto_authenc_create()
418 err = crypto_init_ahash_spawn(&ctx->auth, auth, in crypto_authenc_create()
432 ctx->reqoff = ALIGN(2 * auth->digestsize + auth_base->cra_alignmask, in crypto_authenc_create()
455 inst->alg.maxauthsize = auth->digestsize; in crypto_authenc_create()
477 crypto_drop_ahash(&ctx->auth); in crypto_authenc_create()