Lines Matching refs:desc
74 struct shash_desc desc; member
190 int (*crypt)(struct blkcipher_desc *desc, in cryptd_blkcipher_crypt() argument
196 struct blkcipher_desc desc; in cryptd_blkcipher_crypt() local
203 desc.tfm = child; in cryptd_blkcipher_crypt()
204 desc.info = req->info; in cryptd_blkcipher_crypt()
205 desc.flags = CRYPTO_TFM_REQ_MAY_SLEEP; in cryptd_blkcipher_crypt()
207 err = crypt(&desc, req->dst, req->src, req->nbytes); in cryptd_blkcipher_crypt()
436 struct shash_desc *desc = &rctx->desc; in cryptd_hash_init() local
441 desc->tfm = child; in cryptd_hash_init()
442 desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP; in cryptd_hash_init()
444 err = crypto_shash_init(desc); in cryptd_hash_init()
469 err = shash_ahash_update(req, &rctx->desc); in cryptd_hash_update()
492 err = crypto_shash_final(&rctx->desc, req->result); in cryptd_hash_final()
515 err = shash_ahash_finup(req, &rctx->desc); in cryptd_hash_finup()
536 struct shash_desc *desc = &rctx->desc; in cryptd_hash_digest() local
541 desc->tfm = child; in cryptd_hash_digest()
542 desc->flags = CRYPTO_TFM_REQ_MAY_SLEEP; in cryptd_hash_digest()
544 err = shash_ahash_digest(req, desc); in cryptd_hash_digest()
563 return crypto_shash_export(&rctx->desc, out); in cryptd_hash_export()
570 return crypto_shash_import(&rctx->desc, in); in cryptd_hash_import()
888 return &rctx->desc; in cryptd_shash_desc()