Lines Matching refs:desc
46 static int ghash_init(struct shash_desc *desc) in ghash_init() argument
48 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc); in ghash_init()
54 static int ghash_update(struct shash_desc *desc, const u8 *src, in ghash_update() argument
57 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc); in ghash_update()
63 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_update()
89 static int ghash_final(struct shash_desc *desc, u8 *dst) in ghash_final() argument
91 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc); in ghash_final()
95 struct ghash_key *key = crypto_shash_ctx(desc->tfm); in ghash_final()
163 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_init() local
166 desc->tfm = child; in ghash_async_init()
167 desc->flags = req->base.flags; in ghash_async_init()
168 return crypto_shash_init(desc); in ghash_async_init()
185 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_update() local
186 return shash_ahash_update(req, desc); in ghash_async_update()
203 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_final() local
204 return crypto_shash_final(desc, req->result); in ghash_async_final()
220 struct shash_desc *desc = cryptd_shash_desc(cryptd_req); in ghash_async_digest() local
223 desc->tfm = child; in ghash_async_digest()
224 desc->flags = req->base.flags; in ghash_async_digest()
225 return shash_ahash_digest(req, desc); in ghash_async_digest()