Lines Matching refs:desc

38 static int sha1_update(struct shash_desc *desc, const u8 *data,  in sha1_update()  argument
41 struct sha1_state *sctx = shash_desc_ctx(desc); in sha1_update()
45 return crypto_sha1_update(desc, data, len); in sha1_update()
54 sha1_base_do_update(desc, data, len, sha1_xform); in sha1_update()
60 static int sha1_finup(struct shash_desc *desc, const u8 *data, in sha1_finup() argument
64 return crypto_sha1_finup(desc, data, len, out); in sha1_finup()
68 sha1_base_do_update(desc, data, len, sha1_xform); in sha1_finup()
69 sha1_base_do_finalize(desc, sha1_xform); in sha1_finup()
72 return sha1_base_finish(desc, out); in sha1_finup()
78 static int sha1_ssse3_update(struct shash_desc *desc, const u8 *data, in sha1_ssse3_update() argument
81 return sha1_update(desc, data, len, sha1_transform_ssse3); in sha1_ssse3_update()
84 static int sha1_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha1_ssse3_finup() argument
87 return sha1_finup(desc, data, len, out, sha1_transform_ssse3); in sha1_ssse3_finup()
91 static int sha1_ssse3_final(struct shash_desc *desc, u8 *out) in sha1_ssse3_final() argument
93 return sha1_ssse3_finup(desc, NULL, 0, out); in sha1_ssse3_final()
128 static int sha1_avx_update(struct shash_desc *desc, const u8 *data, in sha1_avx_update() argument
131 return sha1_update(desc, data, len, sha1_transform_avx); in sha1_avx_update()
134 static int sha1_avx_finup(struct shash_desc *desc, const u8 *data, in sha1_avx_finup() argument
137 return sha1_finup(desc, data, len, out, sha1_transform_avx); in sha1_avx_finup()
140 static int sha1_avx_final(struct shash_desc *desc, u8 *out) in sha1_avx_final() argument
142 return sha1_avx_finup(desc, NULL, 0, out); in sha1_avx_final()
210 static int sha1_avx2_update(struct shash_desc *desc, const u8 *data, in sha1_avx2_update() argument
213 return sha1_update(desc, data, len, sha1_apply_transform_avx2); in sha1_avx2_update()
216 static int sha1_avx2_finup(struct shash_desc *desc, const u8 *data, in sha1_avx2_finup() argument
219 return sha1_finup(desc, data, len, out, sha1_apply_transform_avx2); in sha1_avx2_finup()
222 static int sha1_avx2_final(struct shash_desc *desc, u8 *out) in sha1_avx2_final() argument
224 return sha1_avx2_finup(desc, NULL, 0, out); in sha1_avx2_final()
260 static int sha1_ni_update(struct shash_desc *desc, const u8 *data, in sha1_ni_update() argument
263 return sha1_update(desc, data, len, sha1_ni_transform); in sha1_ni_update()
266 static int sha1_ni_finup(struct shash_desc *desc, const u8 *data, in sha1_ni_finup() argument
269 return sha1_finup(desc, data, len, out, sha1_ni_transform); in sha1_ni_finup()
272 static int sha1_ni_final(struct shash_desc *desc, u8 *out) in sha1_ni_final() argument
274 return sha1_ni_finup(desc, NULL, 0, out); in sha1_ni_final()