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