Lines Matching refs:cryptd_tfm
59 struct cryptd_ahash *cryptd_tfm; member
221 struct cryptd_ahash *cryptd_tfm = ctx->cryptd_tfm; in ghash_async_init() local
223 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_init()
234 struct cryptd_ahash *cryptd_tfm = ctx->cryptd_tfm; in ghash_async_update() local
237 (in_atomic() && cryptd_ahash_queued(cryptd_tfm))) { in ghash_async_update()
239 ahash_request_set_tfm(cryptd_req, &cryptd_tfm->base); in ghash_async_update()
252 struct cryptd_ahash *cryptd_tfm = ctx->cryptd_tfm; in ghash_async_final() local
255 (in_atomic() && cryptd_ahash_queued(cryptd_tfm))) { in ghash_async_final()
257 ahash_request_set_tfm(cryptd_req, &cryptd_tfm->base); in ghash_async_final()
270 struct cryptd_ahash *cryptd_tfm = ctx->cryptd_tfm; in ghash_async_digest() local
273 (in_atomic() && cryptd_ahash_queued(cryptd_tfm))) { in ghash_async_digest()
275 ahash_request_set_tfm(cryptd_req, &cryptd_tfm->base); in ghash_async_digest()
279 struct crypto_shash *child = cryptd_ahash_child(cryptd_tfm); in ghash_async_digest()
293 desc->tfm = cryptd_ahash_child(ctx->cryptd_tfm); in ghash_async_import()
310 struct crypto_ahash *child = &ctx->cryptd_tfm->base; in ghash_async_setkey()
320 struct cryptd_ahash *cryptd_tfm; in ghash_async_init_tfm() local
323 cryptd_tfm = cryptd_alloc_ahash("ghash-ce-sync", 0, 0); in ghash_async_init_tfm()
324 if (IS_ERR(cryptd_tfm)) in ghash_async_init_tfm()
325 return PTR_ERR(cryptd_tfm); in ghash_async_init_tfm()
326 ctx->cryptd_tfm = cryptd_tfm; in ghash_async_init_tfm()
329 crypto_ahash_reqsize(&cryptd_tfm->base)); in ghash_async_init_tfm()
338 cryptd_free_ahash(ctx->cryptd_tfm); in ghash_async_exit_tfm()