Lines Matching refs:desc
26 static int sm3_ce_update(struct shash_desc *desc, const u8 *data,
30 sm3_update(shash_desc_ctx(desc), data, len);
35 sm3_base_do_update(desc, data, len, sm3_ce_transform);
41 static int sm3_ce_final(struct shash_desc *desc, u8 *out)
44 sm3_final(shash_desc_ctx(desc), out);
49 sm3_base_do_finalize(desc, sm3_ce_transform);
52 return sm3_base_finish(desc, out);
55 static int sm3_ce_finup(struct shash_desc *desc, const u8 *data,
59 struct sm3_state *sctx = shash_desc_ctx(desc);
69 sm3_base_do_update(desc, data, len, sm3_ce_transform);
70 sm3_base_do_finalize(desc, sm3_ce_transform);
73 return sm3_base_finish(desc, out);