Lines Matching refs:hdesc
370 static int shash_compat_init(struct hash_desc *hdesc)
372 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm);
375 desc->flags = hdesc->flags;
380 static int shash_compat_update(struct hash_desc *hdesc, struct scatterlist *sg,
383 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm);
388 for (nbytes = crypto_hash_walk_first_compat(hdesc, &walk, sg, len);
395 static int shash_compat_final(struct hash_desc *hdesc, u8 *out)
397 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm);
402 static int shash_compat_digest(struct hash_desc *hdesc, struct scatterlist *sg,
409 struct shash_desc **descp = crypto_hash_ctx(hdesc->tfm);
413 desc->flags = hdesc->flags;
422 err = shash_compat_init(hdesc);
426 err = shash_compat_update(hdesc, sg, nbytes);
430 err = shash_compat_final(hdesc, out);