• Home
  • Raw
  • Download

Lines Matching refs:auth

23 	struct crypto_ahash_spawn auth;  member
29 struct crypto_ahash *auth; member
88 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_setkey() local
96 crypto_ahash_clear_flags(auth, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey()
97 crypto_ahash_set_flags(auth, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey()
99 err = crypto_ahash_setkey(auth, keys.authkey, keys.authkeylen); in crypto_authenc_setkey()
100 crypto_aead_set_flags(authenc, crypto_ahash_get_flags(auth) & in crypto_authenc_setkey()
148 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_genicv() local
154 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_genicv()
155 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_genicv()
157 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_genicv()
295 struct crypto_ahash *auth = ctx->auth; in crypto_authenc_decrypt() local
301 hash = (u8 *)ALIGN((unsigned long)hash + crypto_ahash_alignmask(auth), in crypto_authenc_decrypt()
302 crypto_ahash_alignmask(auth) + 1); in crypto_authenc_decrypt()
304 ahash_request_set_tfm(ahreq, auth); in crypto_authenc_decrypt()
322 struct crypto_ahash *auth; in crypto_authenc_init_tfm() local
327 auth = crypto_spawn_ahash(&ictx->auth); in crypto_authenc_init_tfm()
328 if (IS_ERR(auth)) in crypto_authenc_init_tfm()
329 return PTR_ERR(auth); in crypto_authenc_init_tfm()
341 ctx->auth = auth; in crypto_authenc_init_tfm()
350 crypto_ahash_reqsize(auth) + in crypto_authenc_init_tfm()
360 crypto_free_ahash(auth); in crypto_authenc_init_tfm()
368 crypto_free_ahash(ctx->auth); in crypto_authenc_exit_tfm()
378 crypto_drop_ahash(&ctx->auth); in crypto_authenc_free()
387 struct hash_alg_common *auth; in crypto_authenc_create() local
401 auth = ahash_attr_alg(tb[1], CRYPTO_ALG_TYPE_HASH, in crypto_authenc_create()
404 if (IS_ERR(auth)) in crypto_authenc_create()
405 return PTR_ERR(auth); in crypto_authenc_create()
407 auth_base = &auth->base; in crypto_authenc_create()
421 err = crypto_init_ahash_spawn(&ctx->auth, auth, in crypto_authenc_create()
435 ctx->reqoff = ALIGN(2 * auth->digestsize + auth_base->cra_alignmask, in crypto_authenc_create()
461 inst->alg.maxauthsize = auth->digestsize; in crypto_authenc_create()
483 crypto_drop_ahash(&ctx->auth); in crypto_authenc_create()