Lines Matching refs:desc

64 static int sha256_ce_update(struct shash_desc *desc, const u8 *data,  in sha256_ce_update()  argument
67 struct sha256_ce_state *sctx = shash_desc_ctx(desc); in sha256_ce_update()
70 return sha256_base_do_update(desc, data, len, in sha256_ce_update()
74 sha256_base_do_update(desc, data, len, __sha2_ce_transform); in sha256_ce_update()
79 static int sha256_ce_finup(struct shash_desc *desc, const u8 *data, in sha256_ce_finup() argument
82 struct sha256_ce_state *sctx = shash_desc_ctx(desc); in sha256_ce_finup()
87 sha256_base_do_update(desc, data, len, in sha256_ce_finup()
89 sha256_base_do_finalize(desc, __sha256_block_data_order); in sha256_ce_finup()
90 return sha256_base_finish(desc, out); in sha256_ce_finup()
99 sha256_base_do_update(desc, data, len, __sha2_ce_transform); in sha256_ce_finup()
101 sha256_base_do_finalize(desc, __sha2_ce_transform); in sha256_ce_finup()
102 return sha256_base_finish(desc, out); in sha256_ce_finup()
105 static int sha256_ce_final(struct shash_desc *desc, u8 *out) in sha256_ce_final() argument
107 struct sha256_ce_state *sctx = shash_desc_ctx(desc); in sha256_ce_final()
110 sha256_base_do_finalize(desc, __sha256_block_data_order); in sha256_ce_final()
111 return sha256_base_finish(desc, out); in sha256_ce_final()
115 sha256_base_do_finalize(desc, __sha2_ce_transform); in sha256_ce_final()
116 return sha256_base_finish(desc, out); in sha256_ce_final()
119 static int sha256_ce_export(struct shash_desc *desc, void *out) in sha256_ce_export() argument
121 struct sha256_ce_state *sctx = shash_desc_ctx(desc); in sha256_ce_export()
127 static int sha256_ce_import(struct shash_desc *desc, const void *in) in sha256_ce_import() argument
129 struct sha256_ce_state *sctx = shash_desc_ctx(desc); in sha256_ce_import()