Home
last modified time | relevance | path

Searched refs:php_hash_uint32 (Results 1 – 25 of 25) sorted by relevance

/PHP-7.0/ext/hash/
H A Dphp_hash_ripemd.h27 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 Dphp_hash_sha.h39 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 Dphp_hash_fnv.h24 #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 Dphp_hash_md.h63 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 Dphp_hash_gost.h28 php_hash_uint32 state[16];
29 php_hash_uint32 count[2];
32 const php_hash_uint32 (*tables)[4][256];
H A Dphp_hash_joaat.h25 php_hash_uint32 state;
32 static php_hash_uint32 joaat_buf(void *buf, size_t len, php_hash_uint32 hval);
H A Dphp_hash_haval.h27 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 Dphp_hash_crc32_tables.h21 static const php_hash_uint32 crc32_table[] = { 0x0,
75 static const php_hash_uint32 crc32b_table[] = {
H A Dphp_hash_gost_tables.h1 static const php_hash_uint32 tables_test[4][256] = {
140 static const php_hash_uint32 tables_crypto[4][256] = {
H A Dhash_ripemd.c195 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 Dhash_haval.c34 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 Dphp_hash_snefru.h32 php_hash_uint32 state[16];
33 php_hash_uint32 count[2];
H A Dhash_md.c89 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 Dhash_fnv.c150 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 Dhash_snefru.c36 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 Dhash_sha.c64 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 Dhash_joaat.c73 static php_hash_uint32
74 joaat_buf(void *buf, size_t len, php_hash_uint32 hval) in joaat_buf()
H A Dhash_gost.c210 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 Dphp_hash_snefru_tables.h21 static const php_hash_uint32 tables[16][256]= {
H A Dhash_tiger.c45 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 Dphp_hash_adler32.h27 php_hash_uint32 state;
H A Dphp_hash_crc32.h27 php_hash_uint32 state;
H A Dhash_adler32.c32 php_hash_uint32 i, s[2]; in PHP_ADLER32Update()
H A Dphp_hash.h35 #define php_hash_uint32 uint32_t macro
H A Dhash_whirlpool.c286 php_hash_uint32 b, carry; in PHP_WHIRLPOOLUpdate()
294 carry += bitLength[i] + ((php_hash_uint32)value & 0xff); in PHP_WHIRLPOOLUpdate()

Completed in 70 milliseconds