/PHP-7.2/ext/hash/ |
H A D | hash_whirlpool.c | 67 state[0] = block[0] ^ (K[0] = context->state[0]); in WhirlpoolTransform() 68 state[1] = block[1] ^ (K[1] = context->state[1]); in WhirlpoolTransform() 258 context->state[0] ^= state[0] ^ block[0]; in WhirlpoolTransform() 259 context->state[1] ^= state[1] ^ block[1]; in WhirlpoolTransform() 260 context->state[2] ^= state[2] ^ block[2]; in WhirlpoolTransform() 261 context->state[3] ^= state[3] ^ block[3]; in WhirlpoolTransform() 262 context->state[4] ^= state[4] ^ block[4]; in WhirlpoolTransform() 263 context->state[5] ^= state[5] ^ block[5]; in WhirlpoolTransform() 264 context->state[6] ^= state[6] ^ block[6]; in WhirlpoolTransform() 265 context->state[7] ^= state[7] ^ block[7]; in WhirlpoolTransform() [all …]
|
H A D | hash_crc32.c | 28 context->state = ~0; in PHP_CRC32Init() 36 context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)]; in PHP_CRC32Update() 45 context->state = (context->state >> 8) ^ crc32b_table[(context->state ^ input[i]) & 0xff]; in PHP_CRC32BUpdate() 51 context->state=~context->state; in PHP_CRC32Final() 54 digest[1] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_CRC32Final() 55 digest[0] = (unsigned char) (context->state & 0xff); in PHP_CRC32Final() 56 context->state = 0; in PHP_CRC32Final() 61 context->state=~context->state; in PHP_CRC32BFinal() 65 digest[3] = (unsigned char) (context->state & 0xff); in PHP_CRC32BFinal() 66 context->state = 0; in PHP_CRC32BFinal() [all …]
|
H A D | hash_haval.c | 347 context->state[3] += (context->state[7] & 0xFF000000) | in PHP_HAVAL128Final() 352 context->state[2] += (((context->state[7] & 0x00FF0000) | in PHP_HAVAL128Final() 401 context->state[4] += ((context->state[7] & 0xFE000000) | in PHP_HAVAL160Final() 405 context->state[3] += ((context->state[7] & 0x01F80000) | in PHP_HAVAL160Final() 409 context->state[2] += (context->state[7] & 0x0007F000) | in PHP_HAVAL160Final() 455 context->state[5] += ((context->state[7] & 0xFC000000) | (context->state[6] & 0x03E00000)) >> 21; in PHP_HAVAL192Final() 456 context->state[4] += ((context->state[7] & 0x03E00000) | (context->state[6] & 0x001F0000)) >> 16; in PHP_HAVAL192Final() 457 context->state[3] += ((context->state[7] & 0x001F0000) | (context->state[6] & 0x0000FC00)) >> 10; in PHP_HAVAL192Final() 458 context->state[2] += ((context->state[7] & 0x0000FC00) | (context->state[6] & 0x000003E0)) >> 5; in PHP_HAVAL192Final() 459 context->state[1] += (context->state[7] & 0x000003E0) | (context->state[6] & 0x0000001F); in PHP_HAVAL192Final() [all …]
|
H A D | hash_ripemd.c | 209 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD128Transform() 210 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3]; in RIPEMD128Transform() 245 state[1] = state[2] + d + aa; in RIPEMD128Transform() 246 state[2] = state[3] + a + bb; in RIPEMD128Transform() 247 state[3] = state[0] + b + cc; in RIPEMD128Transform() 300 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD256Transform() 301 uint32_t aa = state[4], bb = state[5], cc = state[6], dd = state[7]; in RIPEMD256Transform() 398 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD160Transform() 399 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3], ee = state[4]; in RIPEMD160Transform() 497 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD320Transform() [all …]
|
H A D | hash_adler32.c | 27 context->state = 1; in PHP_ADLER32Init() 34 s[0] = context->state & 0xffff; in PHP_ADLER32Update() 35 s[1] = (context->state >> 16) & 0xffff; in PHP_ADLER32Update() 47 context->state = s[0] + (s[1] << 16); in PHP_ADLER32Update() 52 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_ADLER32Final() 53 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_ADLER32Final() 54 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_ADLER32Final() 55 digest[3] = (unsigned char) (context->state & 0xff); in PHP_ADLER32Final() 56 context->state = 0; in PHP_ADLER32Final() 61 copy_context->state = orig_context->state; in PHP_ADLER32Copy()
|
H A D | hash_sha.c | 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() 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() 795 uint64_t a = state[0], b = state[1], c = state[2], d = state[3]; in SHA512Transform() [all …]
|
H A D | hash_fnv.c | 76 context->state = PHP_FNV1_32_INIT; in PHP_FNV132Init() 83 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); in PHP_FNV132Update() 89 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a32Update() 95 memcpy(digest, &context->state, 4); in PHP_FNV132Final() 98 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV132Final() 111 context->state = PHP_FNV1_64_INIT; in PHP_FNV164Init() 118 context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); in PHP_FNV164Update() 124 context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a64Update() 130 memcpy(digest, &context->state, 8); in PHP_FNV164Final() 133 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV164Final()
|
H A D | hash_joaat.c | 41 context->state = 0; in PHP_JOAATInit() 46 context->state = joaat_buf((void *)input, inputLen, context->state); in PHP_JOAATUpdate() 52 memcpy(digest, &context->state, 4); in PHP_JOAATFinal() 55 unsigned char *c = (unsigned char *) &context->state; in PHP_JOAATFinal() 61 context->state = 0; in PHP_JOAATFinal()
|
H A D | hash_tiger.c | 119 #define tiger_compress(passes, str, state) \ argument 125 a = state[0]; \ 126 b = state[1]; \ 127 c = state[2]; \ 133 state[0] = a; \ 134 state[1] = b; \ 135 state[2] = c; \ 184 context->state[0] = L64(0x0123456789ABCDEF); in PHP_3TIGERInit() 185 context->state[1] = L64(0xFEDCBA9876543210); in PHP_3TIGERInit() 186 context->state[2] = L64(0xF096A5B4C3B2E187); in PHP_3TIGERInit() [all …]
|
/PHP-7.2/ext/hash/sha3/generic64lc/ |
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-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-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 …]
|
/PHP-7.2/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() 1506 parser->state = state; in php_http_parser_execute() [all …]
|
/PHP-7.2/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.2/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); 231 SnP_Permute(instance->state); [all …]
|
/PHP-7.2/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.2/ext/mbstring/oniguruma/src/ |
H A D | gb18030.c | 153 enum state { enum 191 enum state state = S_START; in gb18030_left_adjust_char_head() local 196 switch (state) { in gb18030_left_adjust_char_head() 230 state = S_one_CMC4; in gb18030_left_adjust_char_head() 240 state = S_odd_C4CM; in gb18030_left_adjust_char_head() 255 state = S_even_CM_one_CX; in gb18030_left_adjust_char_head() 266 state = S_odd_CM_one_CX; in gb18030_left_adjust_char_head() 328 state = S_odd_CMC4; in gb18030_left_adjust_char_head() 396 state = S_even_C4CM; in gb18030_left_adjust_char_head() 420 state = S_odd_C4CM; in gb18030_left_adjust_char_head() [all …]
|
H A D | regparse.h | 135 #define SET_ENCLOSE_STATUS(node,f) (node)->u.enclose.state |= (f) 136 #define CLEAR_ENCLOSE_STATUS(node,f) (node)->u.enclose.state &= ~(f) 147 (((en)->state & NST_STOP_BT_SIMPLE_REPEAT) != 0) 150 #define SET_CALL_RECURSION(node) (node)->u.call.state |= NST_RECURSION 151 #define IS_CALL_RECURSION(cn) (((cn)->state & NST_RECURSION) != 0) 152 #define IS_CALL_NAME_REF(cn) (((cn)->state & NST_NAME_REF) != 0) 153 #define IS_BACKREF_NAME_REF(bn) (((bn)->state & NST_NAME_REF) != 0) 171 int state; member 187 int state; member 215 int state; member [all …]
|
/PHP-7.2/ext/gd/libgd/ |
H A D | gdhelpers.c | 15 gd_strtok_r (char *s, char *sep, char **state) in gd_strtok_r() argument 29 s = *state; in gd_strtok_r() 35 *state = s; in gd_strtok_r() 49 *state = s; in gd_strtok_r() 60 *state = s; in gd_strtok_r() 74 *state = s; in gd_strtok_r()
|
/PHP-7.2/ext/pdo/ |
H A D | pdo_sqlstate.c | 32 const char state[5]; member 322 zend_hash_str_add_ptr(&err_hash, info->state, sizeof(info->state), (void *)info); in pdo_sqlstate_init_error_table() 328 const char *pdo_sqlstate_state_to_description(char *state) in pdo_sqlstate_state_to_description() argument 331 if ((info = zend_hash_str_find_ptr(&err_hash, state, sizeof(err_initializer[0].state))) != NULL) { in pdo_sqlstate_state_to_description()
|
/PHP-7.2/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);
|
/PHP-7.2/ext/tokenizer/ |
H A D | tokenizer.php | 16 $state = 0; variable 20 if ($state == 1 && $token[0] == T_STRING) { 22 $state = 0; variable 24 $state = 1; variable
|