Lines Matching refs:desc
55 static int _sha256_update(struct shash_desc *desc, const u8 *data, in _sha256_update() argument
58 struct sha256_state *sctx = shash_desc_ctx(desc); in _sha256_update()
62 return crypto_sha256_update(desc, data, len); in _sha256_update()
71 sha256_base_do_update(desc, data, len, sha256_xform); in _sha256_update()
77 static int sha256_finup(struct shash_desc *desc, const u8 *data, in sha256_finup() argument
81 return crypto_sha256_finup(desc, data, len, out); in sha256_finup()
85 sha256_base_do_update(desc, data, len, sha256_xform); in sha256_finup()
86 sha256_base_do_finalize(desc, sha256_xform); in sha256_finup()
89 return sha256_base_finish(desc, out); in sha256_finup()
92 static int sha256_ssse3_update(struct shash_desc *desc, const u8 *data, in sha256_ssse3_update() argument
95 return _sha256_update(desc, data, len, sha256_transform_ssse3); in sha256_ssse3_update()
98 static int sha256_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha256_ssse3_finup() argument
101 return sha256_finup(desc, data, len, out, sha256_transform_ssse3); in sha256_ssse3_finup()
105 static int sha256_ssse3_final(struct shash_desc *desc, u8 *out) in sha256_ssse3_final() argument
107 return sha256_ssse3_finup(desc, NULL, 0, out); in sha256_ssse3_final()
158 static int sha256_avx_update(struct shash_desc *desc, const u8 *data, in sha256_avx_update() argument
161 return _sha256_update(desc, data, len, sha256_transform_avx); in sha256_avx_update()
164 static int sha256_avx_finup(struct shash_desc *desc, const u8 *data, in sha256_avx_finup() argument
167 return sha256_finup(desc, data, len, out, sha256_transform_avx); in sha256_avx_finup()
170 static int sha256_avx_final(struct shash_desc *desc, u8 *out) in sha256_avx_final() argument
172 return sha256_avx_finup(desc, NULL, 0, out); in sha256_avx_final()
234 static int sha256_avx2_update(struct shash_desc *desc, const u8 *data, in sha256_avx2_update() argument
237 return _sha256_update(desc, data, len, sha256_transform_rorx); in sha256_avx2_update()
240 static int sha256_avx2_finup(struct shash_desc *desc, const u8 *data, in sha256_avx2_finup() argument
243 return sha256_finup(desc, data, len, out, sha256_transform_rorx); in sha256_avx2_finup()
246 static int sha256_avx2_final(struct shash_desc *desc, u8 *out) in sha256_avx2_final() argument
248 return sha256_avx2_finup(desc, NULL, 0, out); in sha256_avx2_final()
309 static int sha256_ni_update(struct shash_desc *desc, const u8 *data, in sha256_ni_update() argument
312 return _sha256_update(desc, data, len, sha256_ni_transform); in sha256_ni_update()
315 static int sha256_ni_finup(struct shash_desc *desc, const u8 *data, in sha256_ni_finup() argument
318 return sha256_finup(desc, data, len, out, sha256_ni_transform); in sha256_ni_finup()
321 static int sha256_ni_final(struct shash_desc *desc, u8 *out) in sha256_ni_final() argument
323 return sha256_ni_finup(desc, NULL, 0, out); in sha256_ni_final()