Lines Matching refs:desc
23 static int sm3_avx_update(struct shash_desc *desc, const u8 *data,
26 struct sm3_state *sctx = shash_desc_ctx(desc);
41 sm3_base_do_update(desc, data, len, sm3_transform_avx);
47 static int sm3_avx_finup(struct shash_desc *desc, const u8 *data,
51 struct sm3_state *sctx = shash_desc_ctx(desc);
62 sm3_base_do_update(desc, data, len, sm3_transform_avx);
63 sm3_base_do_finalize(desc, sm3_transform_avx);
66 return sm3_base_finish(desc, out);
69 static int sm3_avx_final(struct shash_desc *desc, u8 *out)
72 sm3_final(shash_desc_ctx(desc), out);
77 sm3_base_do_finalize(desc, sm3_transform_avx);
80 return sm3_base_finish(desc, out);