Lines Matching +full:15 +full:- +full:input

1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* SHA-512 code by Jean-Luc Cooke <jlcooke@certainkey.com>
4 * Copyright (c) Jean-Luc Cooke <jlcooke@certainkey.com>
88 static inline void LOAD_OP(int I, u64 *W, const u8 *input) in LOAD_OP() argument
90 W[I] = get_unaligned_be64((__u64 *)input + I); in LOAD_OP()
95 W[I & 15] += s1(W[(I-2) & 15]) + W[(I-7) & 15] + s0(W[(I-15) & 15]); in BLEND_OP()
99 sha512_transform(u64 *state, const u8 *input) in sha512_transform() argument
116 /* load the input */ in sha512_transform()
118 LOAD_OP(i + j, W, input); in sha512_transform()
126 t1 = h + e1(e) + Ch(e,f,g) + sha512_K[i ] + W[(i & 15)]; in sha512_transform()
128 t1 = g + e1(d) + Ch(d,e,f) + sha512_K[i+1] + W[(i & 15) + 1]; in sha512_transform()
130 t1 = f + e1(c) + Ch(c,d,e) + sha512_K[i+2] + W[(i & 15) + 2]; in sha512_transform()
132 t1 = e + e1(b) + Ch(b,c,d) + sha512_K[i+3] + W[(i & 15) + 3]; in sha512_transform()
134 t1 = d + e1(a) + Ch(a,b,c) + sha512_K[i+4] + W[(i & 15) + 4]; in sha512_transform()
136 t1 = c + e1(h) + Ch(h,a,b) + sha512_K[i+5] + W[(i & 15) + 5]; in sha512_transform()
138 t1 = b + e1(g) + Ch(g,h,a) + sha512_K[i+6] + W[(i & 15) + 6]; in sha512_transform()
140 t1 = a + e1(f) + Ch(f,g,h) + sha512_K[i+7] + W[(i & 15) + 7]; in sha512_transform()
151 while (blocks--) { in sha512_generic_block_fn()
152 sha512_transform(sst->state, src); in sha512_generic_block_fn()
187 .cra_driver_name = "sha512-generic",
201 .cra_driver_name = "sha384-generic",
222 MODULE_DESCRIPTION("SHA-512 and SHA-384 Secure Hash Algorithms");
225 MODULE_ALIAS_CRYPTO("sha384-generic");
227 MODULE_ALIAS_CRYPTO("sha512-generic");