/PHP-7.0/ext/hash/ |
H A D | php_hash_ripemd.h | 27 php_hash_uint32 state[4]; /* state (ABCD) */ 28 php_hash_uint32 count[2]; /* number of bits, modulo 2^64 (lsb first) */ 33 php_hash_uint32 state[5]; /* state (ABCD) */ 34 php_hash_uint32 count[2]; /* number of bits, modulo 2^64 (lsb first) */ 39 php_hash_uint32 state[8]; /* state (ABCD) */ 40 php_hash_uint32 count[2]; /* number of bits, modulo 2^64 (lsb first) */ 45 php_hash_uint32 state[10]; /* state (ABCD) */ 46 php_hash_uint32 count[2]; /* number of bits, modulo 2^64 (lsb first) */
|
H A D | php_hash_sha.h | 39 php_hash_uint32 state[5]; /* state (ABCD) */ 40 php_hash_uint32 count[2]; /* number of bits, modulo 2^64 */ 55 php_hash_uint32 state[8]; /* state */ 56 php_hash_uint32 count[2]; /* number of bits, modulo 2^64 */ 66 php_hash_uint32 state[8]; /* state */ 67 php_hash_uint32 count[2]; /* number of bits, modulo 2^64 */
|
H A D | php_hash_fnv.h | 24 #define PHP_FNV1_32_INIT ((php_hash_uint32)0x811c9dc5) 27 #define PHP_FNV_32_PRIME ((php_hash_uint32)0x01000193) 49 php_hash_uint32 state; 67 static php_hash_uint32 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate);
|
H A D | php_hash_md.h | 63 php_hash_uint32 state[4]; /* state (ABCD) */ 64 php_hash_uint32 count[2]; /* number of bits, modulo 2^64 (lsb first) */ 79 php_hash_uint32 state[4]; 80 php_hash_uint32 count[2];
|
H A D | php_hash_gost.h | 28 php_hash_uint32 state[16]; 29 php_hash_uint32 count[2]; 32 const php_hash_uint32 (*tables)[4][256];
|
H A D | php_hash_joaat.h | 25 php_hash_uint32 state; 32 static php_hash_uint32 joaat_buf(void *buf, size_t len, php_hash_uint32 hval);
|
H A D | php_hash_haval.h | 27 php_hash_uint32 state[8]; 28 php_hash_uint32 count[2]; 33 void (*Transform)(php_hash_uint32 state[8], const unsigned char block[128]);
|
H A D | php_hash_crc32_tables.h | 21 static const php_hash_uint32 crc32_table[] = { 0x0, 75 static const php_hash_uint32 crc32b_table[] = {
|
H A D | php_hash_gost_tables.h | 1 static const php_hash_uint32 tables_test[4][256] = { 140 static const php_hash_uint32 tables_crypto[4][256] = {
|
H A D | hash_ripemd.c | 195 output[i] = ((php_hash_uint32) input[j + 0]) | (((php_hash_uint32) input[j + 1]) << 8) | in RIPEMDDecode() 196 (((php_hash_uint32) input[j + 2]) << 16) | (((php_hash_uint32) input[j + 3]) << 24); in RIPEMDDecode() 207 php_hash_uint32 tmp, x[16]; in RIPEMD128Transform() 264 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_RIPEMD128Update() 267 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_RIPEMD128Update() 298 php_hash_uint32 tmp, x[16]; in RIPEMD256Transform() 362 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_RIPEMD256Update() 396 php_hash_uint32 tmp, x[16]; in RIPEMD160Transform() 461 if ((context->count[0] += ((php_hash_uint32) inputLen << 3)) < ((php_hash_uint32) inputLen << 3)) { in PHP_RIPEMD160Update() 495 php_hash_uint32 tmp, x[16]; in RIPEMD320Transform() [all …]
|
H A D | hash_haval.c | 34 static const php_hash_uint32 D0[8] = { 37 static const php_hash_uint32 K2[32] = { 123 output[i] = ((php_hash_uint32) input[j]) | (((php_hash_uint32) input[j + 1]) << 8) | in Decode() 124 (((php_hash_uint32) input[j + 2]) << 16) | (((php_hash_uint32) input[j + 3]) << 24); in Decode() 146 php_hash_uint32 E[8]; in PHP_3HAVALTransform() 147 php_hash_uint32 x[32]; in PHP_3HAVALTransform() 180 php_hash_uint32 E[8]; in PHP_4HAVALTransform() 181 php_hash_uint32 x[32]; in PHP_4HAVALTransform() 217 php_hash_uint32 E[8]; in PHP_5HAVALTransform() 218 php_hash_uint32 x[32]; in PHP_5HAVALTransform() [all …]
|
H A D | php_hash_snefru.h | 32 php_hash_uint32 state[16]; 33 php_hash_uint32 count[2];
|
H A D | hash_md.c | 89 output[i] = ((php_hash_uint32) input[j]) | (((php_hash_uint32) input[j + 1]) << 8) | in Decode() 90 (((php_hash_uint32) input[j + 2]) << 16) | (((php_hash_uint32) input[j + 3]) << 24); in Decode() 244 (a) += F ((b), (c), (d)) + (x) + (php_hash_uint32)(ac); \ 249 (a) += G ((b), (c), (d)) + (x) + (php_hash_uint32)(ac); \ 254 (a) += H ((b), (c), (d)) + (x) + (php_hash_uint32)(ac); \ 259 (a) += I ((b), (c), (d)) + (x) + (php_hash_uint32)(ac); \ 294 < ((php_hash_uint32) inputLen << 3)) in PHP_MD5Update() 296 context->count[1] += ((php_hash_uint32) inputLen >> 29); in PHP_MD5Update() 355 php_hash_uint32 state[4]; in MD5Transform() 553 < ((php_hash_uint32) inputLen << 3)) in PHP_MD4Update() [all …]
|
H A D | hash_fnv.c | 150 static php_hash_uint32 151 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate) in fnv_32_buf() 166 hval ^= (php_hash_uint32)*bp++; in fnv_32_buf() 169 hval ^= (php_hash_uint32)*bp++; in fnv_32_buf()
|
H A D | hash_snefru.c | 36 void ph(php_hash_uint32 h[16]) in ph() 44 static inline void Snefru(php_hash_uint32 input[16]) in Snefru() 48 const php_hash_uint32 *t0,*t1; in Snefru() 49 php_hash_uint32 SBE,B00,B01,B02,B03,B04,B05,B06,B07,B08,B09,B10,B11,B12,B13,B14,B15; in Snefru() 132 memset(&context->state[8], 0, sizeof(php_hash_uint32) * 8); in SnefruTransform() 140 static const php_hash_uint32 MAX32 = 0xffffffffLU; 176 php_hash_uint32 i, j; in PHP_SNEFRUFinal()
|
H A D | hash_sha.c | 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() 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() 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] = { 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() [all …]
|
H A D | hash_joaat.c | 73 static php_hash_uint32 74 joaat_buf(void *buf, size_t len, php_hash_uint32 hval) in joaat_buf()
|
H A D | hash_gost.c | 210 static inline void Gost(PHP_GOST_CTX *context, php_hash_uint32 data[8]) in Gost() 213 php_hash_uint32 l, r, t, key[8], u[8], v[8], w[8], s[8], *h = context->state, *m = data; in Gost() 230 php_hash_uint32 data[8], temp = 0; in GostTransform() 233 data[i] = ((php_hash_uint32) input[j]) | (((php_hash_uint32) input[j + 1]) << 8) | in GostTransform() 234 (((php_hash_uint32) input[j + 2]) << 16) | (((php_hash_uint32) input[j + 3]) << 24); in GostTransform() 254 static const php_hash_uint32 MAX32 = 0xffffffffLU; 290 php_hash_uint32 i, j, l[8] = {0}; in PHP_GOSTFinal()
|
H A D | php_hash_snefru_tables.h | 21 static const php_hash_uint32 tables[16][256]= {
|
H A D | hash_tiger.c | 45 t2[(unsigned char)(((php_hash_uint32)(c))>>(2*8))] ^ \ 47 t4[(unsigned char)(((php_hash_uint32)((c)>>(4*8)))>>(2*8))] ; \ 48 b += t4[(unsigned char)(((php_hash_uint32)(c))>>(1*8))] ^ \ 49 t3[(unsigned char)(((php_hash_uint32)(c))>>(3*8))] ^ \ 50 t2[(unsigned char)(((php_hash_uint32)((c)>>(4*8)))>>(1*8))] ^ \ 51 t1[(unsigned char)(((php_hash_uint32)((c)>>(4*8)))>>(3*8))]; \
|
H A D | php_hash_adler32.h | 27 php_hash_uint32 state;
|
H A D | php_hash_crc32.h | 27 php_hash_uint32 state;
|
H A D | hash_adler32.c | 32 php_hash_uint32 i, s[2]; in PHP_ADLER32Update()
|
H A D | php_hash.h | 35 #define php_hash_uint32 uint32_t macro
|
H A D | hash_whirlpool.c | 286 php_hash_uint32 b, carry; in PHP_WHIRLPOOLUpdate() 294 carry += bitLength[i] + ((php_hash_uint32)value & 0xff); in PHP_WHIRLPOOLUpdate()
|