Lines Matching refs:h
80 c->h[0] = U64(0x8c3d37c819544da2); in sha512_224_init()
81 c->h[1] = U64(0x73e1996689dcd4d6); in sha512_224_init()
82 c->h[2] = U64(0x1dfab7ae32ff9c82); in sha512_224_init()
83 c->h[3] = U64(0x679dd514582f9fcf); in sha512_224_init()
84 c->h[4] = U64(0x0f6d2b697bd44da8); in sha512_224_init()
85 c->h[5] = U64(0x77e36f7304c48942); in sha512_224_init()
86 c->h[6] = U64(0x3f9d85a86a1d36c8); in sha512_224_init()
87 c->h[7] = U64(0x1112e6ad91d692a1); in sha512_224_init()
98 c->h[0] = U64(0x22312194fc2bf72c); in sha512_256_init()
99 c->h[1] = U64(0x9f555fa3c84c64c2); in sha512_256_init()
100 c->h[2] = U64(0x2393b86b6f53b151); in sha512_256_init()
101 c->h[3] = U64(0x963877195940eabd); in sha512_256_init()
102 c->h[4] = U64(0x96283ee2a88effe3); in sha512_256_init()
103 c->h[5] = U64(0xbe5e1e2553863992); in sha512_256_init()
104 c->h[6] = U64(0x2b0199fc2c85b8aa); in sha512_256_init()
105 c->h[7] = U64(0x0eb72ddc81c52ca2); in sha512_256_init()
116 c->h[0] = U64(0xcbbb9d5dc1059ed8); in SHA384_Init()
117 c->h[1] = U64(0x629a292a367cd507); in SHA384_Init()
118 c->h[2] = U64(0x9159015a3070dd17); in SHA384_Init()
119 c->h[3] = U64(0x152fecd8f70e5939); in SHA384_Init()
120 c->h[4] = U64(0x67332667ffc00b31); in SHA384_Init()
121 c->h[5] = U64(0x8eb44a8768581511); in SHA384_Init()
122 c->h[6] = U64(0xdb0c2e0d64f98fa7); in SHA384_Init()
123 c->h[7] = U64(0x47b5481dbefa4fa4); in SHA384_Init()
134 c->h[0] = U64(0x6a09e667f3bcc908); in SHA512_Init()
135 c->h[1] = U64(0xbb67ae8584caa73b); in SHA512_Init()
136 c->h[2] = U64(0x3c6ef372fe94f82b); in SHA512_Init()
137 c->h[3] = U64(0xa54ff53a5f1d36f1); in SHA512_Init()
138 c->h[4] = U64(0x510e527fade682d1); in SHA512_Init()
139 c->h[5] = U64(0x9b05688c2b3e6c1f); in SHA512_Init()
140 c->h[6] = U64(0x1f83d9abfb41bd6b); in SHA512_Init()
141 c->h[7] = U64(0x5be0cd19137e2179); in SHA512_Init()
204 SHA_LONG64 t = c->h[n]; in SHA512_Final()
220 SHA_LONG64 t = c->h[SHA224_DIGEST_LENGTH / 8]; in SHA512_Final()
230 SHA_LONG64 t = c->h[n]; in SHA512_Final()
244 SHA_LONG64 t = c->h[n]; in SHA512_Final()
258 SHA_LONG64 t = c->h[n]; in SHA512_Final()
612 A = ctx->h[0]; in sha512_block_data_order()
613 F[1] = ctx->h[1]; in sha512_block_data_order()
614 F[2] = ctx->h[2]; in sha512_block_data_order()
615 F[3] = ctx->h[3]; in sha512_block_data_order()
616 E = ctx->h[4]; in sha512_block_data_order()
617 F[5] = ctx->h[5]; in sha512_block_data_order()
618 F[6] = ctx->h[6]; in sha512_block_data_order()
619 F[7] = ctx->h[7]; in sha512_block_data_order()
648 ctx->h[0] += A; in sha512_block_data_order()
649 ctx->h[1] += F[1]; in sha512_block_data_order()
650 ctx->h[2] += F[2]; in sha512_block_data_order()
651 ctx->h[3] += F[3]; in sha512_block_data_order()
652 ctx->h[4] += E; in sha512_block_data_order()
653 ctx->h[5] += F[5]; in sha512_block_data_order()
654 ctx->h[6] += F[6]; in sha512_block_data_order()
655 ctx->h[7] += F[7]; in sha512_block_data_order()
667 SHA_LONG64 a, b, c, d, e, f, g, h, s0, s1, T1, T2; in sha512_block_data_order() local
673 a = ctx->h[0]; in sha512_block_data_order()
674 b = ctx->h[1]; in sha512_block_data_order()
675 c = ctx->h[2]; in sha512_block_data_order()
676 d = ctx->h[3]; in sha512_block_data_order()
677 e = ctx->h[4]; in sha512_block_data_order()
678 f = ctx->h[5]; in sha512_block_data_order()
679 g = ctx->h[6]; in sha512_block_data_order()
680 h = ctx->h[7]; in sha512_block_data_order()
688 T1 += h + Sigma1(e) + Ch(e, f, g) + K512[i]; in sha512_block_data_order()
690 h = g; in sha512_block_data_order()
707 T1 += h + Sigma1(e) + Ch(e, f, g) + K512[i]; in sha512_block_data_order()
709 h = g; in sha512_block_data_order()
719 ctx->h[0] += a; in sha512_block_data_order()
720 ctx->h[1] += b; in sha512_block_data_order()
721 ctx->h[2] += c; in sha512_block_data_order()
722 ctx->h[3] += d; in sha512_block_data_order()
723 ctx->h[4] += e; in sha512_block_data_order()
724 ctx->h[5] += f; in sha512_block_data_order()
725 ctx->h[6] += g; in sha512_block_data_order()
726 ctx->h[7] += h; in sha512_block_data_order()
733 # define ROUND_00_15(i,a,b,c,d,e,f,g,h) do { \ argument
734 T1 += h + Sigma1(e) + Ch(e,f,g) + K512[i]; \
735 h = Sigma0(a) + Maj(a,b,c); \
736 d += T1; h += T1; } while (0)
738 # define ROUND_16_80(i,j,a,b,c,d,e,f,g,h,X) do { \ argument
742 ROUND_00_15(i+j,a,b,c,d,e,f,g,h); } while (0)
752 SHA_LONG64 a, b, c, d, e, f, g, h, s0, s1, T1; in sha512_block_data_order_c() local
758 a = ctx->h[0]; in sha512_block_data_order_c()
759 b = ctx->h[1]; in sha512_block_data_order_c()
760 c = ctx->h[2]; in sha512_block_data_order_c()
761 d = ctx->h[3]; in sha512_block_data_order_c()
762 e = ctx->h[4]; in sha512_block_data_order_c()
763 f = ctx->h[5]; in sha512_block_data_order_c()
764 g = ctx->h[6]; in sha512_block_data_order_c()
765 h = ctx->h[7]; in sha512_block_data_order_c()
769 ROUND_00_15(0, a, b, c, d, e, f, g, h); in sha512_block_data_order_c()
771 ROUND_00_15(1, h, a, b, c, d, e, f, g); in sha512_block_data_order_c()
773 ROUND_00_15(2, g, h, a, b, c, d, e, f); in sha512_block_data_order_c()
775 ROUND_00_15(3, f, g, h, a, b, c, d, e); in sha512_block_data_order_c()
777 ROUND_00_15(4, e, f, g, h, a, b, c, d); in sha512_block_data_order_c()
779 ROUND_00_15(5, d, e, f, g, h, a, b, c); in sha512_block_data_order_c()
781 ROUND_00_15(6, c, d, e, f, g, h, a, b); in sha512_block_data_order_c()
783 ROUND_00_15(7, b, c, d, e, f, g, h, a); in sha512_block_data_order_c()
785 ROUND_00_15(8, a, b, c, d, e, f, g, h); in sha512_block_data_order_c()
787 ROUND_00_15(9, h, a, b, c, d, e, f, g); in sha512_block_data_order_c()
789 ROUND_00_15(10, g, h, a, b, c, d, e, f); in sha512_block_data_order_c()
791 ROUND_00_15(11, f, g, h, a, b, c, d, e); in sha512_block_data_order_c()
793 ROUND_00_15(12, e, f, g, h, a, b, c, d); in sha512_block_data_order_c()
795 ROUND_00_15(13, d, e, f, g, h, a, b, c); in sha512_block_data_order_c()
797 ROUND_00_15(14, c, d, e, f, g, h, a, b); in sha512_block_data_order_c()
799 ROUND_00_15(15, b, c, d, e, f, g, h, a); in sha512_block_data_order_c()
802 ROUND_00_15(0, a, b, c, d, e, f, g, h); in sha512_block_data_order_c()
804 ROUND_00_15(1, h, a, b, c, d, e, f, g); in sha512_block_data_order_c()
806 ROUND_00_15(2, g, h, a, b, c, d, e, f); in sha512_block_data_order_c()
808 ROUND_00_15(3, f, g, h, a, b, c, d, e); in sha512_block_data_order_c()
810 ROUND_00_15(4, e, f, g, h, a, b, c, d); in sha512_block_data_order_c()
812 ROUND_00_15(5, d, e, f, g, h, a, b, c); in sha512_block_data_order_c()
814 ROUND_00_15(6, c, d, e, f, g, h, a, b); in sha512_block_data_order_c()
816 ROUND_00_15(7, b, c, d, e, f, g, h, a); in sha512_block_data_order_c()
818 ROUND_00_15(8, a, b, c, d, e, f, g, h); in sha512_block_data_order_c()
820 ROUND_00_15(9, h, a, b, c, d, e, f, g); in sha512_block_data_order_c()
822 ROUND_00_15(10, g, h, a, b, c, d, e, f); in sha512_block_data_order_c()
824 ROUND_00_15(11, f, g, h, a, b, c, d, e); in sha512_block_data_order_c()
826 ROUND_00_15(12, e, f, g, h, a, b, c, d); in sha512_block_data_order_c()
828 ROUND_00_15(13, d, e, f, g, h, a, b, c); in sha512_block_data_order_c()
830 ROUND_00_15(14, c, d, e, f, g, h, a, b); in sha512_block_data_order_c()
832 ROUND_00_15(15, b, c, d, e, f, g, h, a); in sha512_block_data_order_c()
836 ROUND_16_80(i, 0, a, b, c, d, e, f, g, h, X); in sha512_block_data_order_c()
837 ROUND_16_80(i, 1, h, a, b, c, d, e, f, g, X); in sha512_block_data_order_c()
838 ROUND_16_80(i, 2, g, h, a, b, c, d, e, f, X); in sha512_block_data_order_c()
839 ROUND_16_80(i, 3, f, g, h, a, b, c, d, e, X); in sha512_block_data_order_c()
840 ROUND_16_80(i, 4, e, f, g, h, a, b, c, d, X); in sha512_block_data_order_c()
841 ROUND_16_80(i, 5, d, e, f, g, h, a, b, c, X); in sha512_block_data_order_c()
842 ROUND_16_80(i, 6, c, d, e, f, g, h, a, b, X); in sha512_block_data_order_c()
843 ROUND_16_80(i, 7, b, c, d, e, f, g, h, a, X); in sha512_block_data_order_c()
844 ROUND_16_80(i, 8, a, b, c, d, e, f, g, h, X); in sha512_block_data_order_c()
845 ROUND_16_80(i, 9, h, a, b, c, d, e, f, g, X); in sha512_block_data_order_c()
846 ROUND_16_80(i, 10, g, h, a, b, c, d, e, f, X); in sha512_block_data_order_c()
847 ROUND_16_80(i, 11, f, g, h, a, b, c, d, e, X); in sha512_block_data_order_c()
848 ROUND_16_80(i, 12, e, f, g, h, a, b, c, d, X); in sha512_block_data_order_c()
849 ROUND_16_80(i, 13, d, e, f, g, h, a, b, c, X); in sha512_block_data_order_c()
850 ROUND_16_80(i, 14, c, d, e, f, g, h, a, b, X); in sha512_block_data_order_c()
851 ROUND_16_80(i, 15, b, c, d, e, f, g, h, a, X); in sha512_block_data_order_c()
854 ctx->h[0] += a; in sha512_block_data_order_c()
855 ctx->h[1] += b; in sha512_block_data_order_c()
856 ctx->h[2] += c; in sha512_block_data_order_c()
857 ctx->h[3] += d; in sha512_block_data_order_c()
858 ctx->h[4] += e; in sha512_block_data_order_c()
859 ctx->h[5] += f; in sha512_block_data_order_c()
860 ctx->h[6] += g; in sha512_block_data_order_c()
861 ctx->h[7] += h; in sha512_block_data_order_c()