Home
last modified time | relevance | path

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

1234567

/PHP-7.1/ext/hash/
H A Dhash_whirlpool.c67 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 Dhash_crc32.c28 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 Dhash_haval.c347 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 Dhash_ripemd.c205 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD128Transform()
206 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3]; in RIPEMD128Transform()
241 state[1] = state[2] + d + aa; in RIPEMD128Transform()
242 state[2] = state[3] + a + bb; in RIPEMD128Transform()
243 state[3] = state[0] + b + cc; in RIPEMD128Transform()
296 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD256Transform()
297 uint32_t aa = state[4], bb = state[5], cc = state[6], dd = state[7]; in RIPEMD256Transform()
394 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD160Transform()
395 uint32_t aa = state[0], bb = state[1], cc = state[2], dd = state[3], ee = state[4]; in RIPEMD160Transform()
493 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD320Transform()
[all …]
H A Dhash_adler32.c27 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 Dhash_sha.c224 uint32_t a = state[0], b = state[1], c = state[2]; in SHA1Transform()
225 uint32_t d = state[3], e = state[4], x[16], tmp; in SHA1Transform()
317 state[0] += a; in SHA1Transform()
318 state[1] += b; in SHA1Transform()
319 state[2] += c; in SHA1Transform()
320 state[3] += d; in SHA1Transform()
321 state[4] += e; in SHA1Transform()
482 uint32_t a = state[0], b = state[1], c = state[2], d = state[3]; in SHA256Transform()
483 uint32_t e = state[4], f = state[5], g = state[6], h = state[7]; in SHA256Transform()
792 uint64_t a = state[0], b = state[1], c = state[2], d = state[3]; in SHA512Transform()
[all …]
H A Dhash_fnv.c72 context->state = PHP_FNV1_32_INIT; in PHP_FNV132Init()
79 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); in PHP_FNV132Update()
85 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a32Update()
91 memcpy(digest, &context->state, 4); in PHP_FNV132Final()
94 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV132Final()
107 context->state = PHP_FNV1_64_INIT; in PHP_FNV164Init()
114 context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); in PHP_FNV164Update()
120 context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a64Update()
126 memcpy(digest, &context->state, 8); in PHP_FNV164Final()
129 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV164Final()
H A Dhash_joaat.c40 context->state = 0; in PHP_JOAATInit()
45 context->state = joaat_buf((void *)input, inputLen, context->state); in PHP_JOAATUpdate()
51 memcpy(digest, &context->state, 4); in PHP_JOAATFinal()
54 unsigned char *c = (unsigned char *) &context->state; in PHP_JOAATFinal()
60 context->state = 0; in PHP_JOAATFinal()
H A Dhash_tiger.c119 #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 …]
H A Dhash_md.c358 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16];
434 state[0] += a;
435 state[1] += b;
436 state[2] += c;
437 state[3] += d;
460 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16]; in MD4Transform()
518 state[0] += a; in MD4Transform()
519 state[1] += b; in MD4Transform()
520 state[2] += c; in MD4Transform()
640 context->state[32+i] = (context->state[16+i] ^ context->state[i]); in MD2_Transform()
[all …]
H A Dphp_hash_sha.h39 uint32_t state[5]; /* state (ABCD) */ member
55 uint32_t state[8]; /* state */ member
66 uint32_t state[8]; /* state */ member
77 uint64_t state[8]; /* state */ member
88 uint64_t state[8]; /* state */ member
H A Dphp_hash_ripemd.h27 uint32_t state[4]; /* state (ABCD) */ member
33 uint32_t state[5]; /* state (ABCD) */ member
39 uint32_t state[8]; /* state (ABCD) */ member
45 uint32_t state[10]; /* state (ABCD) */ member
H A Dhash_sha3.c64 # define readLane(x, y) load64(ctx->state+sizeof(uint64_t)*idx(x, y))
65 # define writeLane(x, y, v) store64(ctx->state+sizeof(uint64_t)*idx(x, y), v)
66 # define XORLane(x, y, v) xor64(ctx->state+sizeof(uint64_t)*idx(x, y), v)
68 # define readLane(x, y) (((uint64_t*)ctx->state)[idx(x,y)])
69 # define writeLane(x, y, v) (((uint64_t*)ctx->state)[idx(x,y)] = v)
70 # define XORLane(x, y, v) (((uint64_t*)ctx->state)[idx(x,y)] ^= v)
163 ctx->state[ctx->pos++] ^= *(buf++); in PHP_SHA3_Update()
179 ctx->state[ctx->pos++] ^= 0x06; in PHP_SHA3_Final()
180 ctx->state[block_size-1] ^= 0x80; in PHP_SHA3_Final()
186 memcpy(digest, ctx->state, bs); in PHP_SHA3_Final()
H A Dphp_hash_md.h63 uint32_t state[4]; /* state (ABCD) */ member
79 uint32_t state[4]; member
90 unsigned char state[48]; member
/PHP-7.1/sapi/cli/
H A Dphp_http_parser.c266 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.1/ext/standard/tests/array/
H A Dbug35022.phpt5 $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) );
H A Dcompact.phpt7 $state = "CA";
10 $location_vars = array("c\\u0327ity", "state");
19 ["state"]=>
/PHP-7.1/ext/mbstring/oniguruma/enc/
H A Dgb18030.c113 enum state { enum
151 enum state state = S_START; in gb18030_left_adjust_char_head() local
156 switch (state) { in gb18030_left_adjust_char_head()
190 state = S_one_CMC4; in gb18030_left_adjust_char_head()
200 state = S_odd_C4CM; in gb18030_left_adjust_char_head()
215 state = S_even_CM_one_CX; in gb18030_left_adjust_char_head()
226 state = S_odd_CM_one_CX; in gb18030_left_adjust_char_head()
288 state = S_odd_CMC4; in gb18030_left_adjust_char_head()
356 state = S_even_C4CM; in gb18030_left_adjust_char_head()
380 state = S_odd_C4CM; in gb18030_left_adjust_char_head()
[all …]
/PHP-7.1/ext/gd/libgd/
H A Dgdhelpers.c15 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.1/ext/pdo/
H A Dpdo_sqlstate.c32 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.1/ext/mbstring/oniguruma/
H A Dregparse.h135 #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.1/ext/tokenizer/
H A Dtokenizer.php16 $state = 0; variable
20 if ($state == 1 && $token[0] == T_STRING) {
22 $state = 0; variable
24 $state = 1; variable
/PHP-7.1/ext/standard/
H A Dmt_rand.c99 static inline void php_mt_initialize(uint32_t seed, uint32_t *state) in php_mt_initialize() argument
106 register uint32_t *s = state; in php_mt_initialize()
107 register uint32_t *r = state; in php_mt_initialize()
125 register uint32_t *state = BG(state); in php_mt_reload() local
126 register uint32_t *p = state; in php_mt_reload()
134 *p = twist(p[M-N], p[0], state[0]); in php_mt_reload()
141 *p = twist_php(p[M-N], p[0], state[0]); in php_mt_reload()
144 BG(next) = state; in php_mt_reload()
153 php_mt_initialize(seed, BG(state)); in php_mt_srand()
/PHP-7.1/ext/mbstring/libmbfl/tests/
H A Dstrwidth.c20 int state = 0; in main() local
50 if (state == 1) { in main()
51 state = 0; in main()
56 state = 1; in main()
/PHP-7.1/ext/spl/tests/
H A Diterator_041a.phpt9 public $state;
11 static function fail($state, $method)
13 if (self::$fail == $state)
15 throw new Exception("State $state: $method()");
21 $this->state = MyArrayIterator::$fail;

Completed in 45 milliseconds

1234567