/PHP-7.4/ext/hash/ |
H A D | hash_whirlpool.c | 65 state[0] = block[0] ^ (K[0] = context->state[0]); in WhirlpoolTransform() 66 state[1] = block[1] ^ (K[1] = context->state[1]); in WhirlpoolTransform() 256 context->state[0] ^= state[0] ^ block[0]; in WhirlpoolTransform() 257 context->state[1] ^= state[1] ^ block[1]; in WhirlpoolTransform() 258 context->state[2] ^= state[2] ^ block[2]; in WhirlpoolTransform() 259 context->state[3] ^= state[3] ^ block[3]; in WhirlpoolTransform() 260 context->state[4] ^= state[4] ^ block[4]; in WhirlpoolTransform() 261 context->state[5] ^= state[5] ^ block[5]; in WhirlpoolTransform() 262 context->state[6] ^= state[6] ^ block[6]; in WhirlpoolTransform() 263 context->state[7] ^= state[7] ^ block[7]; in WhirlpoolTransform() [all …]
|
H A D | hash_crc32.c | 26 context->state = ~0; in PHP_CRC32Init() 34 context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)]; in PHP_CRC32Update() 43 context->state = (context->state >> 8) ^ crc32b_table[(context->state ^ input[i]) & 0xff]; in PHP_CRC32BUpdate() 52 context->state = (context->state >> 8) ^ crc32c_table[(context->state ^ input[i]) & 0xff]; in PHP_CRC32CUpdate() 58 context->state=~context->state; in PHP_CRC32LEFinal() 62 digest[0] = (unsigned char) (context->state & 0xff); in PHP_CRC32LEFinal() 63 context->state = 0; in PHP_CRC32LEFinal() 68 context->state=~context->state; in PHP_CRC32BEFinal() 72 digest[3] = (unsigned char) (context->state & 0xff); in PHP_CRC32BEFinal() 73 context->state = 0; in PHP_CRC32BEFinal() [all …]
|
H A D | hash_haval.c | 345 context->state[3] += (context->state[7] & 0xFF000000) | in PHP_HAVAL128Final() 350 context->state[2] += (((context->state[7] & 0x00FF0000) | in PHP_HAVAL128Final() 399 context->state[4] += ((context->state[7] & 0xFE000000) | in PHP_HAVAL160Final() 403 context->state[3] += ((context->state[7] & 0x01F80000) | in PHP_HAVAL160Final() 407 context->state[2] += (context->state[7] & 0x0007F000) | in PHP_HAVAL160Final() 453 context->state[5] += ((context->state[7] & 0xFC000000) | (context->state[6] & 0x03E00000)) >> 21; in PHP_HAVAL192Final() 454 context->state[4] += ((context->state[7] & 0x03E00000) | (context->state[6] & 0x001F0000)) >> 16; in PHP_HAVAL192Final() 455 context->state[3] += ((context->state[7] & 0x001F0000) | (context->state[6] & 0x0000FC00)) >> 10; in PHP_HAVAL192Final() 456 context->state[2] += ((context->state[7] & 0x0000FC00) | (context->state[6] & 0x000003E0)) >> 5; in PHP_HAVAL192Final() 457 context->state[1] += (context->state[7] & 0x000003E0) | (context->state[6] & 0x0000001F); in PHP_HAVAL192Final() [all …]
|
H A D | hash_adler32.c | 25 context->state = 1; in PHP_ADLER32Init() 32 s[0] = context->state & 0xffff; in PHP_ADLER32Update() 33 s[1] = (context->state >> 16) & 0xffff; in PHP_ADLER32Update() 45 context->state = s[0] + (s[1] << 16); in PHP_ADLER32Update() 50 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_ADLER32Final() 51 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_ADLER32Final() 52 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_ADLER32Final() 53 digest[3] = (unsigned char) (context->state & 0xff); in PHP_ADLER32Final() 54 context->state = 0; in PHP_ADLER32Final() 59 copy_context->state = orig_context->state; in PHP_ADLER32Copy()
|
H A D | hash_ripemd.c | 207 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD128Transform() 208 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3]; in RIPEMD128Transform() 243 state[1] = state[2] + d + aa; in RIPEMD128Transform() 244 state[2] = state[3] + a + bb; in RIPEMD128Transform() 245 state[3] = state[0] + b + cc; in RIPEMD128Transform() 298 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD256Transform() 299 uint32_t aa = state[4], bb = state[5], cc = state[6], dd = state[7]; in RIPEMD256Transform() 396 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD160Transform() 397 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3], ee = state[4]; in RIPEMD160Transform() 495 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD320Transform() [all …]
|
H A D | hash_sha.c | 220 uint32_t a = state[0], b = state[1], c = state[2]; in SHA1Transform() 221 uint32_t d = state[3], e = state[4], x[16], tmp; in SHA1Transform() 313 state[0] += a; in SHA1Transform() 314 state[1] += b; in SHA1Transform() 315 state[2] += c; in SHA1Transform() 316 state[3] += d; in SHA1Transform() 317 state[4] += e; in SHA1Transform() 480 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in SHA256Transform() 481 uint32_t e = state[4], f = state[5], g = state[6], h = state[7]; in SHA256Transform() 790 uint64_t a = state[0], b = state[1], c = state[2], d = state[3]; in SHA512Transform() [all …]
|
H A D | hash_fnv.c | 74 context->state = PHP_FNV1_32_INIT; in PHP_FNV132Init() 81 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); in PHP_FNV132Update() 87 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a32Update() 93 memcpy(digest, &context->state, 4); in PHP_FNV132Final() 96 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV132Final() 109 context->state = PHP_FNV1_64_INIT; in PHP_FNV164Init() 116 context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); in PHP_FNV164Update() 122 context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a64Update() 128 memcpy(digest, &context->state, 8); in PHP_FNV164Final() 131 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV164Final()
|
H A D | hash_joaat.c | 39 context->state = 0; in PHP_JOAATInit() 44 context->state = joaat_buf((void *)input, inputLen, context->state); in PHP_JOAATUpdate() 50 memcpy(digest, &context->state, 4); in PHP_JOAATFinal() 53 unsigned char *c = (unsigned char *) &context->state; in PHP_JOAATFinal() 59 context->state = 0; in PHP_JOAATFinal()
|
H A D | hash_tiger.c | 117 #define tiger_compress(passes, str, state) \ argument 123 a = state[0]; \ 124 b = state[1]; \ 125 c = state[2]; \ 131 state[0] = a; \ 132 state[1] = b; \ 133 state[2] = c; \ 182 context->state[0] = L64(0x0123456789ABCDEF); in PHP_3TIGERInit() 183 context->state[1] = L64(0xFEDCBA9876543210); in PHP_3TIGERInit() 184 context->state[2] = L64(0xF096A5B4C3B2E187); in PHP_3TIGERInit() [all …]
|
H A D | php_hash_sha.h | 37 uint32_t state[5]; /* state (ABCD) */ member 53 uint32_t state[8]; /* state */ member 64 uint32_t state[8]; /* state */ member 75 uint64_t state[8]; /* state */ member 86 uint64_t state[8]; /* state */ member
|
H A D | php_hash_ripemd.h | 25 uint32_t state[4]; /* state (ABCD) */ member 31 uint32_t state[5]; /* state (ABCD) */ member 37 uint32_t state[8]; /* state (ABCD) */ member 43 uint32_t state[10]; /* state (ABCD) */ member
|
/PHP-7.4/ext/hash/sha3/generic64lc/ |
H A D | KeccakP-1600-SnP.h | 33 void KeccakP1600_Initialize(void *state); 35 #define KeccakP1600_AddByte(state, byte, offset) \ argument 36 ((unsigned char*)(state))[(offset)] ^= (byte) 38 void KeccakP1600_AddByte(void *state, unsigned char data, unsigned int offset); 40 void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int… 41 void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsign… 42 void KeccakP1600_OverwriteWithZeroes(void *state, unsigned int byteCount); 43 void KeccakP1600_Permute_Nrounds(void *state, unsigned int nrounds); 44 void KeccakP1600_Permute_12rounds(void *state); 45 void KeccakP1600_Permute_24rounds(void *state); [all …]
|
H A D | KeccakP-1600-opt64.c | 78 void KeccakP1600_Initialize(void *state) in KeccakP1600_Initialize() argument 80 memset(state, 0, 200); in KeccakP1600_Initialize() 82 ((UINT64*)state)[ 1] = ~(UINT64)0; in KeccakP1600_Initialize() 83 ((UINT64*)state)[ 2] = ~(UINT64)0; in KeccakP1600_Initialize() 84 ((UINT64*)state)[ 8] = ~(UINT64)0; in KeccakP1600_Initialize() 85 ((UINT64*)state)[12] = ~(UINT64)0; in KeccakP1600_Initialize() 86 ((UINT64*)state)[17] = ~(UINT64)0; in KeccakP1600_Initialize() 87 ((UINT64*)state)[20] = ~(UINT64)0; in KeccakP1600_Initialize() 168 ((UINT64*)state)[i] ^= lane; in KeccakP1600_AddLanes() 226 memcpy(state, data, laneCount*8); in KeccakP1600_OverwriteLanes() [all …]
|
H A D | KeccakP-1600-64.macros | 461 X##ba = state[ 0]; \ 462 X##be = state[ 1]; \ 463 X##bi = state[ 2]; \ 464 X##bo = state[ 3]; \ 465 X##bu = state[ 4]; \ 466 X##ga = state[ 5]; \ 467 X##ge = state[ 6]; \ 468 X##gi = state[ 7]; \ 469 X##go = state[ 8]; \ 470 X##gu = state[ 9]; \ [all …]
|
H A D | SnP-Relaned.h | 19 #define SnP_AddBytes(state, data, offset, length, SnP_AddLanes, SnP_AddBytesInLane, SnP_laneLengthI… argument 22 SnP_AddLanes(state, data, (length)/SnP_laneLengthInBytes); \ 23 SnP_AddBytesInLane(state, \ 38 SnP_AddBytesInLane(state, _lanePosition, _curData, _offsetInLane, _bytesInLane); \ 50 SnP_OverwriteLanes(state, data, (length)/SnP_laneLengthInBytes); \ 51 SnP_OverwriteBytesInLane(state, \ 78 SnP_ExtractLanes(state, data, (length)/SnP_laneLengthInBytes); \ 79 SnP_ExtractBytesInLane(state, \ 94 … SnP_ExtractBytesInLane(state, _lanePosition, _curData, _offsetInLane, _bytesInLane); \ 106 SnP_ExtractAndAddLanes(state, input, output, (length)/SnP_laneLengthInBytes); \ [all …]
|
H A D | KeccakSponge.inc | 49 /* Initialize the state */ 51 SnP_Initialize(state); 68 SnP_Permute(state); 89 SnP_AddByte(state, suffix, partialBlock); 92 SnP_Permute(state); 94 SnP_AddByte(state, 0x80, rateInBytes-1); 103 SnP_Permute(state); 111 SnP_Permute(state); 140 SnP_Initialize(instance->state); 232 SnP_Permute(instance->state); [all …]
|
/PHP-7.4/sapi/cli/ |
H A D | php_http_parser.c | 266 enum state state = (enum state) parser->state; in php_http_parser_execute() local 296 if (state == s_req_path) in php_http_parser_execute() 298 if (state == s_req_path || state == s_req_schema || state == s_req_schema_slash in php_http_parser_execute() 299 || state == s_req_schema_slash_slash || state == s_req_port in php_http_parser_execute() 300 || state == s_req_query_string_start || state == s_req_query_string in php_http_parser_execute() 302 || state == s_req_fragment_start || state == s_req_fragment) in php_http_parser_execute() 314 switch (state) { in php_http_parser_execute() 377 state = s_res_HT; in php_http_parser_execute() 382 state = s_res_HTT; in php_http_parser_execute() 1511 parser->state = state; in php_http_parser_execute() [all …]
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | bug35022.phpt | 5 $state = array("one" => 1, "two" => 2, "three" => 3); 6 function foo( &$state ) { 7 $contentDict = end( $state ); 8 for ( $contentDict = end( $state ); $contentDict !== false; $contentDict = prev( $state ) ) { 9 echo key($state) . " => " . current($state) . "\n"; 12 foo($state); 13 reset($state); 14 var_dump( key($state), current($state) );
|
/PHP-7.4/ext/hash/sha3/generic32lc/ |
H A D | KeccakP-1600-SnP.h | 27 void KeccakP1600_Initialize(void *state); 28 void KeccakP1600_AddByte(void *state, unsigned char data, unsigned int offset); 29 void KeccakP1600_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int… 30 void KeccakP1600_OverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsign… 31 void KeccakP1600_OverwriteWithZeroes(void *state, unsigned int byteCount); 32 void KeccakP1600_Permute_Nrounds(void *state, unsigned int nrounds); 33 void KeccakP1600_Permute_12rounds(void *state); 34 void KeccakP1600_Permute_24rounds(void *state); 35 void KeccakP1600_ExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned… 36 void KeccakP1600_ExtractAndAddBytes(const void *state, const unsigned char *input, unsigned char *o…
|
H A D | SnP-Relaned.h | 19 #define SnP_AddBytes(state, data, offset, length, SnP_AddLanes, SnP_AddBytesInLane, SnP_laneLengthI… argument 22 SnP_AddLanes(state, data, (length)/SnP_laneLengthInBytes); \ 23 SnP_AddBytesInLane(state, \ 38 SnP_AddBytesInLane(state, _lanePosition, _curData, _offsetInLane, _bytesInLane); \ 50 SnP_OverwriteLanes(state, data, (length)/SnP_laneLengthInBytes); \ 51 SnP_OverwriteBytesInLane(state, \ 78 SnP_ExtractLanes(state, data, (length)/SnP_laneLengthInBytes); \ 79 SnP_ExtractBytesInLane(state, \ 94 … SnP_ExtractBytesInLane(state, _lanePosition, _curData, _offsetInLane, _bytesInLane); \ 106 SnP_ExtractAndAddLanes(state, input, output, (length)/SnP_laneLengthInBytes); \ [all …]
|
H A D | KeccakSponge.inc | 49 /* Initialize the state */ 51 SnP_Initialize(state); 68 SnP_Permute(state); 89 SnP_AddByte(state, suffix, partialBlock); 92 SnP_Permute(state); 94 SnP_AddByte(state, 0x80, rateInBytes-1); 103 SnP_Permute(state); 111 SnP_Permute(state); 140 SnP_Initialize(instance->state); 232 SnP_Permute(instance->state); [all …]
|
/PHP-7.4/ext/sodium/tests/ |
H A D | crypto_generichash.phpt | 15 $state = sodium_crypto_generichash_init(); 16 $q = sodium_crypto_generichash_final($state); 18 $state = sodium_crypto_generichash_init(); 19 sodium_crypto_generichash_update($state, 'm'); 20 sodium_crypto_generichash_update($state, 'sg'); 21 $q = sodium_crypto_generichash_final($state); 24 sodium_crypto_generichash_update($state, 'm'); 25 sodium_crypto_generichash_update($state, 'sg'); 26 $q = sodium_crypto_generichash_final($state); 29 sodium_crypto_generichash_update($state, 'm'); [all …]
|
/PHP-7.4/ext/gd/libgd/ |
H A D | gdhelpers.c | 15 gd_strtok_r (char *s, char *sep, char **state) in gd_strtok_r() argument 28 s = *state; in gd_strtok_r() 33 *state = s; in gd_strtok_r() 47 *state = s; in gd_strtok_r() 58 *state = s; in gd_strtok_r() 72 *state = s; in gd_strtok_r()
|
/PHP-7.4/ext/pdo/ |
H A D | pdo_sqlstate.c | 30 const char state[5]; member 320 zend_hash_str_add_ptr(&err_hash, info->state, sizeof(info->state), (void *)info); in pdo_sqlstate_init_error_table() 326 const char *pdo_sqlstate_state_to_description(char *state) in pdo_sqlstate_state_to_description() argument 329 if ((info = zend_hash_str_find_ptr(&err_hash, state, sizeof(err_initializer[0].state))) != NULL) { in pdo_sqlstate_state_to_description()
|
/PHP-7.4/tests/output/ |
H A D | sapi_windows_vt100_support.inc | 5 $state = array( 14 return $state; 17 function restoreVT100State(array $state) 19 sapi_windows_vt100_support(STDIN, $state[0]); 20 sapi_windows_vt100_support(STDOUT, $state[1]); 21 sapi_windows_vt100_support(STDERR, $state[2]); 26 $state = resetVT100State(); 55 restoreVT100State($state);
|