Lines Matching refs:desc
30 static int sha2_ce_update(struct shash_desc *desc, const u8 *data, in sha2_ce_update() argument
33 struct sha256_state *sctx = shash_desc_ctx(desc); in sha2_ce_update()
37 return crypto_sha256_arm_update(desc, data, len); in sha2_ce_update()
40 sha256_base_do_update(desc, data, len, in sha2_ce_update()
47 static int sha2_ce_finup(struct shash_desc *desc, const u8 *data, in sha2_ce_finup() argument
51 return crypto_sha256_arm_finup(desc, data, len, out); in sha2_ce_finup()
55 sha256_base_do_update(desc, data, len, in sha2_ce_finup()
57 sha256_base_do_finalize(desc, (sha256_block_fn *)sha2_ce_transform); in sha2_ce_finup()
60 return sha256_base_finish(desc, out); in sha2_ce_finup()
63 static int sha2_ce_final(struct shash_desc *desc, u8 *out) in sha2_ce_final() argument
65 return sha2_ce_finup(desc, NULL, 0, out); in sha2_ce_final()