Lines Matching defs:sha2_word64
93 typedef uint64_t sha2_word64; /* Exactly 8 bytes */
154 typedef uint64_t sha2_word64; /* Exactly 8 bytes */
160 typedef u_int64_t sha2_word64; /* Exactly 8 bytes */
188 sha2_word64 tmp = (w); \
197 sha2_word64 tmp = (w); \
199 tmp = ((tmp & ((sha2_word64)0xff00ff00ff00ff00)) >> 8) | \
200 ((tmp & ((sha2_word64)0x00ff00ff00ff00ff)) << 8); \
201 (x) = ((tmp & ((sha2_word64)0xffff0000ffff0000)) >> 16) | \
202 ((tmp & ((sha2_word64)0x0000ffff0000ffff)) << 16); \
214 (w)[0] += (sha2_word64)(n); \
316 static const sha2_word64 K512[80] = {
359 ((sha2_word64)0x428a2f98d728ae22), ((sha2_word64)0x7137449123ef65cd),
360 ((sha2_word64)0xb5c0fbcfec4d3b2f), ((sha2_word64)0xe9b5dba58189dbbc),
361 ((sha2_word64)0x3956c25bf348b538), ((sha2_word64)0x59f111f1b605d019),
362 ((sha2_word64)0x923f82a4af194f9b), ((sha2_word64)0xab1c5ed5da6d8118),
363 ((sha2_word64)0xd807aa98a3030242), ((sha2_word64)0x12835b0145706fbe),
364 ((sha2_word64)0x243185be4ee4b28c), ((sha2_word64)0x550c7dc3d5ffb4e2),
365 ((sha2_word64)0x72be5d74f27b896f), ((sha2_word64)0x80deb1fe3b1696b1),
366 ((sha2_word64)0x9bdc06a725c71235), ((sha2_word64)0xc19bf174cf692694),
367 ((sha2_word64)0xe49b69c19ef14ad2), ((sha2_word64)0xefbe4786384f25e3),
368 ((sha2_word64)0x0fc19dc68b8cd5b5), ((sha2_word64)0x240ca1cc77ac9c65),
369 ((sha2_word64)0x2de92c6f592b0275), ((sha2_word64)0x4a7484aa6ea6e483),
370 ((sha2_word64)0x5cb0a9dcbd41fbd4), ((sha2_word64)0x76f988da831153b5),
371 ((sha2_word64)0x983e5152ee66dfab), ((sha2_word64)0xa831c66d2db43210),
372 ((sha2_word64)0xb00327c898fb213f), ((sha2_word64)0xbf597fc7beef0ee4),
373 ((sha2_word64)0xc6e00bf33da88fc2), ((sha2_word64)0xd5a79147930aa725),
374 ((sha2_word64)0x06ca6351e003826f), ((sha2_word64)0x142929670a0e6e70),
375 ((sha2_word64)0x27b70a8546d22ffc), ((sha2_word64)0x2e1b21385c26c926),
376 ((sha2_word64)0x4d2c6dfc5ac42aed), ((sha2_word64)0x53380d139d95b3df),
377 ((sha2_word64)0x650a73548baf63de), ((sha2_word64)0x766a0abb3c77b2a8),
378 ((sha2_word64)0x81c2c92e47edaee6), ((sha2_word64)0x92722c851482353b),
379 ((sha2_word64)0xa2bfe8a14cf10364), ((sha2_word64)0xa81a664bbc423001),
380 ((sha2_word64)0xc24b8b70d0f89791), ((sha2_word64)0xc76c51a30654be30),
381 ((sha2_word64)0xd192e819d6ef5218), ((sha2_word64)0xd69906245565a910),
382 ((sha2_word64)0xf40e35855771202a), ((sha2_word64)0x106aa07032bbd1b8),
383 ((sha2_word64)0x19a4c116b8d2d0c8), ((sha2_word64)0x1e376c085141ab53),
384 ((sha2_word64)0x2748774cdf8eeb99), ((sha2_word64)0x34b0bcb5e19b48a8),
385 ((sha2_word64)0x391c0cb3c5c95a63), ((sha2_word64)0x4ed8aa4ae3418acb),
386 ((sha2_word64)0x5b9cca4f7763e373), ((sha2_word64)0x682e6ff3d6b2b8a3),
387 ((sha2_word64)0x748f82ee5defb2fc), ((sha2_word64)0x78a5636f43172f60),
388 ((sha2_word64)0x84c87814a1f0ab72), ((sha2_word64)0x8cc702081a6439ec),
389 ((sha2_word64)0x90befffa23631e28), ((sha2_word64)0xa4506cebde82bde9),
390 ((sha2_word64)0xbef9a3f7b2c67915), ((sha2_word64)0xc67178f2e372532b),
391 ((sha2_word64)0xca273eceea26619c), ((sha2_word64)0xd186b8c721c0c207),
392 ((sha2_word64)0xeada7dd6cde0eb1e), ((sha2_word64)0xf57d4f7fee6ed178),
393 ((sha2_word64)0x06f067aa72176fba), ((sha2_word64)0x0a637dc5a2c898a6),
394 ((sha2_word64)0x113f9804bef90dae), ((sha2_word64)0x1b710b35131c471b),
395 ((sha2_word64)0x28db77f523047d84), ((sha2_word64)0x32caab7b40c72493),
396 ((sha2_word64)0x3c9ebe0a15c9bebc), ((sha2_word64)0x431d67c49c100d4c),
397 ((sha2_word64)0x4cc5d4becb3e42b6), ((sha2_word64)0x597f299cfc657e2a),
398 ((sha2_word64)0x5fcb6fab3ad6faec), ((sha2_word64)0x6c44198c4a475817)
403 static const sha2_word64 sha384_initial_hash_value[8] = {
414 ((sha2_word64)0xcbbb9d5dc1059ed8),
415 ((sha2_word64)0x629a292a367cd507),
416 ((sha2_word64)0x9159015a3070dd17),
417 ((sha2_word64)0x152fecd8f70e5939),
418 ((sha2_word64)0x67332667ffc00b31),
419 ((sha2_word64)0x8eb44a8768581511),
420 ((sha2_word64)0xdb0c2e0d64f98fa7),
421 ((sha2_word64)0x47b5481dbefa4fa4)
426 static const sha2_word64 sha512_initial_hash_value[8] = {
437 ((sha2_word64)0x6a09e667f3bcc908),
438 ((sha2_word64)0xbb67ae8584caa73b),
439 ((sha2_word64)0x3c6ef372fe94f82b),
440 ((sha2_word64)0xa54ff53a5f1d36f1),
441 ((sha2_word64)0x510e527fade682d1),
442 ((sha2_word64)0x9b05688c2b3e6c1f),
443 ((sha2_word64)0x1f83d9abfb41bd6b),
444 ((sha2_word64)0x5be0cd19137e2179)
469 sha2_word64 bitcount;
762 *(sha2_word64*)&sha->buffer[SHA256_SHORT_BLOCK_LENGTH] = sha->bitcount;
837 sha2_word64 state[8];
838 sha2_word64 bitcount[2];
878 static void SHA512_Transform(SHA512_CTX* sha, const sha2_word64* data) {
879 sha2_word64 a, b, c, d, e, f, g, h, s0, s1;
880 sha2_word64 T1, *W512 = (sha2_word64*)sha->buffer;
933 static void SHA512_Transform(SHA512_CTX* sha, const sha2_word64* data) {
934 sha2_word64 a, b, c, d, e, f, g, h, s0, s1;
935 sha2_word64 T1, T2, *W512 = (sha2_word64*)sha->buffer;
1031 SHA512_Transform(sha, (sha2_word64*)sha->buffer);
1043 SHA512_Transform(sha, (sha2_word64*)data);
1110 SHA512_Transform(sha, (sha2_word64*)sha->buffer);
1123 *(sha2_word64*)&sha->buffer[SHA512_SHORT_BLOCK_LENGTH] = sha->bitcount[1];
1124 *(sha2_word64*)&sha->buffer[SHA512_SHORT_BLOCK_LENGTH+8] = sha->bitcount[0];
1127 SHA512_Transform(sha, (sha2_word64*)sha->buffer);
1132 sha2_word64* d = (sha2_word64*)sha->digest;