Lines Matching refs:php_hash_uint32
41 static void SHAEncode32(unsigned char *output, php_hash_uint32 *input, unsigned int len) in SHAEncode32()
59 static void SHADecode32(php_hash_uint32 *output, const unsigned char *input, unsigned int len) in SHADecode32()
64 output[i] = ((php_hash_uint32) input[j + 3]) | (((php_hash_uint32) input[j + 2]) << 8) | in SHADecode32()
65 (((php_hash_uint32) input[j + 1]) << 16) | (((php_hash_uint32) input[j]) << 24); in SHADecode32()
182 (e) += F ((b), (c), (d)) + (w) + (php_hash_uint32)(0x5A827999); \
187 (e) += G ((b), (c), (d)) + (w) + (php_hash_uint32)(0x6ED9EBA1); \
192 (e) += H ((b), (c), (d)) + (w) + (php_hash_uint32)(0x8F1BBCDC); \
197 (e) += I ((b), (c), (d)) + (w) + (php_hash_uint32)(0xCA62C1D6); \
222 static void SHA1Transform(php_hash_uint32 state[5], const unsigned char block[64]) in SHA1Transform()
224 php_hash_uint32 a = state[0], b = state[1], c = state[2]; in SHA1Transform()
225 php_hash_uint32 d = state[3], e = state[4], x[16], tmp; in SHA1Transform()
342 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) in PHP_SHA1Update()
343 < ((php_hash_uint32) inputLen << 3)) in PHP_SHA1Update()
345 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_SHA1Update()
448 static const php_hash_uint32 SHA256_K[64] = {
480 static void SHA256Transform(php_hash_uint32 state[8], const unsigned char block[64]) in SHA256Transform()
482 php_hash_uint32 a = state[0], b = state[1], c = state[2], d = state[3]; in SHA256Transform()
483 php_hash_uint32 e = state[4], f = state[5], g = state[6], h = state[7]; in SHA256Transform()
484 php_hash_uint32 x[16], T1, T2, W[64]; in SHA256Transform()
550 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_SHA224Update()
553 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_SHA224Update()
627 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_SHA256Update()
630 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_SHA256Update()