Lines Matching +full:data +full:- +full:out

24  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
44 const u8 *data, int blocks);
46 static int _sha256_update(struct shash_desc *desc, const u8 *data, in _sha256_update() argument
52 (sctx->count % SHA256_BLOCK_SIZE) + len < SHA256_BLOCK_SIZE) in _sha256_update()
53 return crypto_sha256_update(desc, data, len); in _sha256_update()
57 * 256-bit internal state, as this is what the asm functions expect. in _sha256_update()
62 sha256_base_do_update(desc, data, len, sha256_xform); in _sha256_update()
68 static int sha256_finup(struct shash_desc *desc, const u8 *data, in sha256_finup() argument
69 unsigned int len, u8 *out, sha256_block_fn *sha256_xform) in sha256_finup() argument
72 return crypto_sha256_finup(desc, data, len, out); in sha256_finup()
76 sha256_base_do_update(desc, data, len, sha256_xform); in sha256_finup()
80 return sha256_base_finish(desc, out); in sha256_finup()
83 static int sha256_ssse3_update(struct shash_desc *desc, const u8 *data, in sha256_ssse3_update() argument
86 return _sha256_update(desc, data, len, sha256_transform_ssse3); in sha256_ssse3_update()
89 static int sha256_ssse3_finup(struct shash_desc *desc, const u8 *data, in sha256_ssse3_finup() argument
90 unsigned int len, u8 *out) in sha256_ssse3_finup() argument
92 return sha256_finup(desc, data, len, out, sha256_transform_ssse3); in sha256_ssse3_finup()
96 static int sha256_ssse3_final(struct shash_desc *desc, u8 *out) in sha256_ssse3_final() argument
98 return sha256_ssse3_finup(desc, NULL, 0, out); in sha256_ssse3_final()
110 .cra_driver_name = "sha256-ssse3",
124 .cra_driver_name = "sha224-ssse3",
147 const u8 *data, int blocks);
149 static int sha256_avx_update(struct shash_desc *desc, const u8 *data, in sha256_avx_update() argument
152 return _sha256_update(desc, data, len, sha256_transform_avx); in sha256_avx_update()
155 static int sha256_avx_finup(struct shash_desc *desc, const u8 *data, in sha256_avx_finup() argument
156 unsigned int len, u8 *out) in sha256_avx_finup() argument
158 return sha256_finup(desc, data, len, out, sha256_transform_avx); in sha256_avx_finup()
161 static int sha256_avx_final(struct shash_desc *desc, u8 *out) in sha256_avx_final() argument
163 return sha256_avx_finup(desc, NULL, 0, out); in sha256_avx_final()
175 .cra_driver_name = "sha256-avx",
189 .cra_driver_name = "sha224-avx",
223 const u8 *data, int blocks);
225 static int sha256_avx2_update(struct shash_desc *desc, const u8 *data, in sha256_avx2_update() argument
228 return _sha256_update(desc, data, len, sha256_transform_rorx); in sha256_avx2_update()
231 static int sha256_avx2_finup(struct shash_desc *desc, const u8 *data, in sha256_avx2_finup() argument
232 unsigned int len, u8 *out) in sha256_avx2_finup() argument
234 return sha256_finup(desc, data, len, out, sha256_transform_rorx); in sha256_avx2_finup()
237 static int sha256_avx2_final(struct shash_desc *desc, u8 *out) in sha256_avx2_final() argument
239 return sha256_avx2_finup(desc, NULL, 0, out); in sha256_avx2_final()
251 .cra_driver_name = "sha256-avx2",
265 .cra_driver_name = "sha224-avx2",
298 const u8 *data, int rounds);
300 static int sha256_ni_update(struct shash_desc *desc, const u8 *data, in sha256_ni_update() argument
303 return _sha256_update(desc, data, len, sha256_ni_transform); in sha256_ni_update()
306 static int sha256_ni_finup(struct shash_desc *desc, const u8 *data, in sha256_ni_finup() argument
307 unsigned int len, u8 *out) in sha256_ni_finup() argument
309 return sha256_finup(desc, data, len, out, sha256_ni_transform); in sha256_ni_finup()
312 static int sha256_ni_final(struct shash_desc *desc, u8 *out) in sha256_ni_final() argument
314 return sha256_ni_finup(desc, NULL, 0, out); in sha256_ni_final()
326 .cra_driver_name = "sha256-ni",
340 .cra_driver_name = "sha224-ni",
392 return -ENODEV; in sha256_ssse3_mod_init()
410 MODULE_ALIAS_CRYPTO("sha256-ssse3");
411 MODULE_ALIAS_CRYPTO("sha256-avx");
412 MODULE_ALIAS_CRYPTO("sha256-avx2");
414 MODULE_ALIAS_CRYPTO("sha224-ssse3");
415 MODULE_ALIAS_CRYPTO("sha224-avx");
416 MODULE_ALIAS_CRYPTO("sha224-avx2");
418 MODULE_ALIAS_CRYPTO("sha256-ni");
419 MODULE_ALIAS_CRYPTO("sha224-ni");