Lines Matching defs:desc
70 static int ghash_init(struct shash_desc *desc)
72 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc);
111 static int ghash_update(struct shash_desc *desc, const u8 *src,
114 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc);
120 struct ghash_key *key = crypto_shash_ctx(desc->tfm);
144 static int ghash_final(struct shash_desc *desc, u8 *dst)
146 struct ghash_desc_ctx *ctx = shash_desc_ctx(desc);
150 struct ghash_key *key = crypto_shash_ctx(desc->tfm);
222 struct shash_desc *desc = cryptd_shash_desc(cryptd_req);
225 desc->tfm = child;
226 return crypto_shash_init(desc);
242 struct shash_desc *desc = cryptd_shash_desc(cryptd_req);
243 return shash_ahash_update(req, desc);
260 struct shash_desc *desc = cryptd_shash_desc(cryptd_req);
261 return crypto_shash_final(desc, req->result);
278 struct shash_desc *desc = cryptd_shash_desc(cryptd_req);
281 desc->tfm = child;
282 return shash_ahash_digest(req, desc);
291 struct shash_desc *desc = cryptd_shash_desc(cryptd_req);
293 desc->tfm = cryptd_ahash_child(ctx->cryptd_tfm);
295 return crypto_shash_import(desc, in);
301 struct shash_desc *desc = cryptd_shash_desc(cryptd_req);
303 return crypto_shash_export(desc, out);