Lines Matching refs:desc
46 static int ghash_init(struct shash_desc *desc) in ghash_init() argument
48 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_init()
80 static int ghash_update(struct shash_desc *desc, in ghash_update() argument
83 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_update()
84 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_update()
134 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final() argument
136 struct ghash_desc_ctx *dctx = shash_desc_ctx(desc); in ghash_final()
137 struct ghash_ctx *ctx = crypto_shash_ctx(desc->tfm); in ghash_final()
177 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_init() local
180 desc->tfm = child; in ghash_async_init()
181 desc->flags = req->base.flags; in ghash_async_init()
182 return crypto_shash_init(desc); in ghash_async_init()
199 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_update() local
200 return shash_ahash_update(req, desc); in ghash_async_update()
217 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_final() local
218 return crypto_shash_final(desc, req->result); in ghash_async_final()
234 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_digest() local
237 desc->tfm = child; in ghash_async_digest()
238 desc->flags = req->base.flags; in ghash_async_digest()
239 return shash_ahash_digest(req, desc); in ghash_async_digest()