Lines Matching refs:state
212 context->state[0] = 0x67452301; in PHP_SHA1Init()
213 context->state[1] = 0xefcdab89; in PHP_SHA1Init()
214 context->state[2] = 0x98badcfe; in PHP_SHA1Init()
215 context->state[3] = 0x10325476; in PHP_SHA1Init()
216 context->state[4] = 0xc3d2e1f0; in PHP_SHA1Init()
223 static void SHA1Transform(uint32_t state[5], const unsigned char block[64]) in SHA1Transform()
225 uint32_t a = state[0], b = state[1], c = state[2]; in SHA1Transform()
226 uint32_t d = state[3], e = state[4], x[16], tmp; in SHA1Transform()
318 state[0] += a; in SHA1Transform()
319 state[1] += b; in SHA1Transform()
320 state[2] += c; in SHA1Transform()
321 state[3] += d; in SHA1Transform()
322 state[4] += e; in SHA1Transform()
355 SHA1Transform(context->state, context->buffer); in PHP_SHA1Update()
358 SHA1Transform(context->state, &input[i]); in PHP_SHA1Update()
400 SHAEncode32(digest, context->state, 20); in PHP_SHA1Final()
469 context->state[0] = 0x6a09e667; in PHP_SHA256Init()
470 context->state[1] = 0xbb67ae85; in PHP_SHA256Init()
471 context->state[2] = 0x3c6ef372; in PHP_SHA256Init()
472 context->state[3] = 0xa54ff53a; in PHP_SHA256Init()
473 context->state[4] = 0x510e527f; in PHP_SHA256Init()
474 context->state[5] = 0x9b05688c; in PHP_SHA256Init()
475 context->state[6] = 0x1f83d9ab; in PHP_SHA256Init()
476 context->state[7] = 0x5be0cd19; in PHP_SHA256Init()
483 static void SHA256Transform(uint32_t state[8], const unsigned char block[64]) in SHA256Transform()
485 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in SHA256Transform()
486 uint32_t e = state[4], f = state[5], g = state[6], h = state[7]; in SHA256Transform()
507 state[0] += a; in SHA256Transform()
508 state[1] += b; in SHA256Transform()
509 state[2] += c; in SHA256Transform()
510 state[3] += d; in SHA256Transform()
511 state[4] += e; in SHA256Transform()
512 state[5] += f; in SHA256Transform()
513 state[6] += g; in SHA256Transform()
514 state[7] += h; in SHA256Transform()
529 context->state[0] = 0xc1059ed8; in PHP_SHA224Init()
530 context->state[1] = 0x367cd507; in PHP_SHA224Init()
531 context->state[2] = 0x3070dd17; in PHP_SHA224Init()
532 context->state[3] = 0xf70e5939; in PHP_SHA224Init()
533 context->state[4] = 0xffc00b31; in PHP_SHA224Init()
534 context->state[5] = 0x68581511; in PHP_SHA224Init()
535 context->state[6] = 0x64f98fa7; in PHP_SHA224Init()
536 context->state[7] = 0xbefa4fa4; in PHP_SHA224Init()
564 SHA256Transform(context->state, context->buffer); in PHP_SHA224Update()
567 SHA256Transform(context->state, &input[i]); in PHP_SHA224Update()
609 SHAEncode32(digest, context->state, 28); in PHP_SHA224Final()
641 SHA256Transform(context->state, context->buffer); in PHP_SHA256Update()
644 SHA256Transform(context->state, &input[i]); in PHP_SHA256Update()
686 SHAEncode32(digest, context->state, 32); in PHP_SHA256Final()
778 context->state[0] = L64(0xcbbb9d5dc1059ed8); in PHP_SHA384Init()
779 context->state[1] = L64(0x629a292a367cd507); in PHP_SHA384Init()
780 context->state[2] = L64(0x9159015a3070dd17); in PHP_SHA384Init()
781 context->state[3] = L64(0x152fecd8f70e5939); in PHP_SHA384Init()
782 context->state[4] = L64(0x67332667ffc00b31); in PHP_SHA384Init()
783 context->state[5] = L64(0x8eb44a8768581511); in PHP_SHA384Init()
784 context->state[6] = L64(0xdb0c2e0d64f98fa7); in PHP_SHA384Init()
785 context->state[7] = L64(0x47b5481dbefa4fa4); in PHP_SHA384Init()
793 static void SHA512Transform(uint64_t state[8], const unsigned char block[128]) in SHA512Transform()
795 uint64_t a = state[0], b = state[1], c = state[2], d = state[3]; in SHA512Transform()
796 uint64_t e = state[4], f = state[5], g = state[6], h = state[7]; in SHA512Transform()
817 state[0] += a; in SHA512Transform()
818 state[1] += b; in SHA512Transform()
819 state[2] += c; in SHA512Transform()
820 state[3] += d; in SHA512Transform()
821 state[4] += e; in SHA512Transform()
822 state[5] += f; in SHA512Transform()
823 state[6] += g; in SHA512Transform()
824 state[7] += h; in SHA512Transform()
855 SHA512Transform(context->state, context->buffer); in PHP_SHA384Update()
858 SHA512Transform(context->state, &input[i]); in PHP_SHA384Update()
908 SHAEncode64(digest, context->state, 48); in PHP_SHA384Final()
935 context->state[0] = L64(0x6a09e667f3bcc908); in PHP_SHA512Init()
936 context->state[1] = L64(0xbb67ae8584caa73b); in PHP_SHA512Init()
937 context->state[2] = L64(0x3c6ef372fe94f82b); in PHP_SHA512Init()
938 context->state[3] = L64(0xa54ff53a5f1d36f1); in PHP_SHA512Init()
939 context->state[4] = L64(0x510e527fade682d1); in PHP_SHA512Init()
940 context->state[5] = L64(0x9b05688c2b3e6c1f); in PHP_SHA512Init()
941 context->state[6] = L64(0x1f83d9abfb41bd6b); in PHP_SHA512Init()
942 context->state[7] = L64(0x5be0cd19137e2179); in PHP_SHA512Init()
953 context->state[0] = L64(0x22312194FC2BF72C); in PHP_SHA512_256Init()
954 context->state[1] = L64(0x9F555FA3C84C64C2); in PHP_SHA512_256Init()
955 context->state[2] = L64(0x2393B86B6F53B151); in PHP_SHA512_256Init()
956 context->state[3] = L64(0x963877195940EABD); in PHP_SHA512_256Init()
957 context->state[4] = L64(0x96283EE2A88EFFE3); in PHP_SHA512_256Init()
958 context->state[5] = L64(0xBE5E1E2553863992); in PHP_SHA512_256Init()
959 context->state[6] = L64(0x2B0199FC2C85B8AA); in PHP_SHA512_256Init()
960 context->state[7] = L64(0x0EB72DDC81C52CA2); in PHP_SHA512_256Init()
971 context->state[0] = L64(0x8C3D37C819544DA2); in PHP_SHA512_224Init()
972 context->state[1] = L64(0x73E1996689DCD4D6); in PHP_SHA512_224Init()
973 context->state[2] = L64(0x1DFAB7AE32FF9C82); in PHP_SHA512_224Init()
974 context->state[3] = L64(0x679DD514582F9FCF); in PHP_SHA512_224Init()
975 context->state[4] = L64(0x0F6D2B697BD44DA8); in PHP_SHA512_224Init()
976 context->state[5] = L64(0x77E36F7304C48942); in PHP_SHA512_224Init()
977 context->state[6] = L64(0x3F9D85A86A1D36C8); in PHP_SHA512_224Init()
978 context->state[7] = L64(0x1112E6AD91D692A1); in PHP_SHA512_224Init()
1006 SHA512Transform(context->state, context->buffer); in PHP_SHA512Update()
1009 SHA512Transform(context->state, &input[i]); in PHP_SHA512Update()
1059 SHAEncode64(digest, context->state, 64); in PHP_SHA512Final()