Lines Matching +full:0 +full:- +full:9 +full:a +full:- +full:d
1 // SPDX-License-Identifier: (GPL-2.0-only OR Apache-2.0)
11 * - CC0 1.0 Universal : http://creativecommons.org/publicdomain/zero/1.0
12 * - OpenSSL license : https://www.openssl.org/source/license.html
13 * - Apache 2.0 : https://www.apache.org/licenses/LICENSE-2.0
26 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
27 { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 },
28 { 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4 },
29 { 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8 },
30 { 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13 },
31 { 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9 },
32 { 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11 },
33 { 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10 },
34 { 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5 },
35 { 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0 },
36 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
37 { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 }
42 S->t[0] += inc; in blake2b_increment_counter()
43 S->t[1] += (S->t[0] < inc); in blake2b_increment_counter()
46 #define G(r,i,a,b,c,d) \ argument
48 a = a + b + m[blake2b_sigma[r][2*i+0]]; \
49 d = ror64(d ^ a, 32); \
50 c = c + d; \
52 a = a + b + m[blake2b_sigma[r][2*i+1]]; \
53 d = ror64(d ^ a, 16); \
54 c = c + d; \
56 } while (0)
60 G(r,0,v[ 0],v[ 4],v[ 8],v[12]); \
61 G(r,1,v[ 1],v[ 5],v[ 9],v[13]); \
64 G(r,4,v[ 0],v[ 5],v[10],v[15]); \
67 G(r,7,v[ 3],v[ 4],v[ 9],v[14]); \
68 } while (0)
77 for (i = 0; i < 16; ++i) in blake2b_compress_one_generic()
80 for (i = 0; i < 8; ++i) in blake2b_compress_one_generic()
81 v[i] = S->h[i]; in blake2b_compress_one_generic()
84 v[ 9] = BLAKE2B_IV1; in blake2b_compress_one_generic()
87 v[12] = BLAKE2B_IV4 ^ S->t[0]; in blake2b_compress_one_generic()
88 v[13] = BLAKE2B_IV5 ^ S->t[1]; in blake2b_compress_one_generic()
89 v[14] = BLAKE2B_IV6 ^ S->f[0]; in blake2b_compress_one_generic()
90 v[15] = BLAKE2B_IV7 ^ S->f[1]; in blake2b_compress_one_generic()
92 ROUND(0); in blake2b_compress_one_generic()
101 ROUND(9); in blake2b_compress_one_generic()
107 for (i = 0; i < 8; ++i) in blake2b_compress_one_generic()
108 S->h[i] = S->h[i] ^ v[i] ^ v[i + 8]; in blake2b_compress_one_generic()
121 } while (--nblocks); in blake2b_compress_generic()
154 BLAKE2B_ALG("blake2b-160", "blake2b-160-generic",
156 BLAKE2B_ALG("blake2b-256", "blake2b-256-generic",
158 BLAKE2B_ALG("blake2b-384", "blake2b-384-generic",
160 BLAKE2B_ALG("blake2b-512", "blake2b-512-generic",
180 MODULE_ALIAS_CRYPTO("blake2b-160");
181 MODULE_ALIAS_CRYPTO("blake2b-160-generic");
182 MODULE_ALIAS_CRYPTO("blake2b-256");
183 MODULE_ALIAS_CRYPTO("blake2b-256-generic");
184 MODULE_ALIAS_CRYPTO("blake2b-384");
185 MODULE_ALIAS_CRYPTO("blake2b-384-generic");
186 MODULE_ALIAS_CRYPTO("blake2b-512");
187 MODULE_ALIAS_CRYPTO("blake2b-512-generic");