Lines Matching refs:auth
23 struct crypto_ahash_spawn auth;
29 struct crypto_ahash *auth;
88 struct crypto_ahash *auth = ctx->auth;
96 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK);
97 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) &
99 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen);
138 struct crypto_ahash *auth = ctx->auth;
144 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth),
145 crypto_ahash_alignmask(auth) + 1);
147 ahash_request_set_tfm(ahreq, auth);
283 struct crypto_ahash *auth = ctx->auth;
289 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth),
290 crypto_ahash_alignmask(auth) + 1);
292 ahash_request_set_tfm(ahreq, auth);
310 struct crypto_ahash *auth;
315 auth = crypto_spawn_ahash(&ictx->auth);
316 if (IS_ERR(auth))
317 return PTR_ERR(auth);
329 ctx->auth = auth;
338 crypto_ahash_reqsize(auth) +
348 crypto_free_ahash(auth);
356 crypto_free_ahash(ctx->auth);
366 crypto_drop_ahash(&ctx->auth);
376 struct hash_alg_common *auth;
390 err = crypto_grab_ahash(&ctx->auth, aead_crypto_instance(inst),
394 auth = crypto_spawn_ahash_alg(&ctx->auth);
395 auth_base = &auth->base;
403 ctx->reqoff = ALIGN(2 * auth->digestsize + auth_base->cra_alignmask,
427 inst->alg.maxauthsize = auth->digestsize;