Lines Matching refs:desc
29 static int sha1_ce_update(struct shash_desc *desc, const u8 *data, in sha1_ce_update() argument
32 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_ce_update()
36 return sha1_update_arm(desc, data, len); in sha1_ce_update()
39 sha1_base_do_update(desc, data, len, sha1_ce_transform); in sha1_ce_update()
45 static int sha1_ce_finup(struct shash_desc *desc, const u8 *data, in sha1_ce_finup() argument
49 return sha1_finup_arm(desc, data, len, out); in sha1_ce_finup()
53 sha1_base_do_update(desc, data, len, sha1_ce_transform); in sha1_ce_finup()
54 sha1_base_do_finalize(desc, sha1_ce_transform); in sha1_ce_finup()
57 return sha1_base_finish(desc, out); in sha1_ce_finup()
60 static int sha1_ce_final(struct shash_desc *desc, u8 *out) in sha1_ce_final() argument
62 return sha1_ce_finup(desc, NULL, 0, out); in sha1_ce_final()