Lines Matching defs:desc
26 static int sm3_ce_update(struct shash_desc *desc, const u8 *data,
30 return crypto_sm3_update(desc, data, len);
33 sm3_base_do_update(desc, data, len, sm3_ce_transform);
39 static int sm3_ce_final(struct shash_desc *desc, u8 *out)
42 return crypto_sm3_finup(desc, NULL, 0, out);
45 sm3_base_do_finalize(desc, sm3_ce_transform);
48 return sm3_base_finish(desc, out);
51 static int sm3_ce_finup(struct shash_desc *desc, const u8 *data,
55 return crypto_sm3_finup(desc, data, len, out);
58 sm3_base_do_update(desc, data, len, sm3_ce_transform);
61 return sm3_ce_final(desc, out);