Lines Matching refs:desc
53 static int sha1_ce_update(struct shash_desc *desc, const u8 *data, in sha1_ce_update() argument
56 struct sha1_ce_state *sctx = shash_desc_ctx(desc); in sha1_ce_update()
59 return crypto_sha1_update(desc, data, len); in sha1_ce_update()
62 sha1_base_do_update(desc, data, len, __sha1_ce_transform); in sha1_ce_update()
67 static int sha1_ce_finup(struct shash_desc *desc, const u8 *data, in sha1_ce_finup() argument
70 struct sha1_ce_state *sctx = shash_desc_ctx(desc); in sha1_ce_finup()
74 return crypto_sha1_finup(desc, data, len, out); in sha1_ce_finup()
82 sha1_base_do_update(desc, data, len, __sha1_ce_transform); in sha1_ce_finup()
84 sha1_base_do_finalize(desc, __sha1_ce_transform); in sha1_ce_finup()
85 return sha1_base_finish(desc, out); in sha1_ce_finup()
88 static int sha1_ce_final(struct shash_desc *desc, u8 *out) in sha1_ce_final() argument
90 struct sha1_ce_state *sctx = shash_desc_ctx(desc); in sha1_ce_final()
93 return crypto_sha1_finup(desc, NULL, 0, out); in sha1_ce_final()
96 sha1_base_do_finalize(desc, __sha1_ce_transform); in sha1_ce_final()
97 return sha1_base_finish(desc, out); in sha1_ce_final()
100 static int sha1_ce_export(struct shash_desc *desc, void *out) in sha1_ce_export() argument
102 struct sha1_ce_state *sctx = shash_desc_ctx(desc); in sha1_ce_export()
108 static int sha1_ce_import(struct shash_desc *desc, const void *in) in sha1_ce_import() argument
110 struct sha1_ce_state *sctx = shash_desc_ctx(desc); in sha1_ce_import()