Home
last modified time | relevance | path

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

1234567

/PHP-5.5/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 php_hash_uint32 a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD128Transform()
206 php_hash_uint32 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 php_hash_uint32 a = state[0], b = state[1], c = state[2], d = state[3]; in RIPEMD256Transform()
297 php_hash_uint32 aa = state[4], bb = state[5], cc = state[6], dd = state[7]; in RIPEMD256Transform()
394 php_hash_uint32 a = state[0], b = state[1], c = state[2], d = state[3], e = state[4]; in RIPEMD160Transform()
395 php_hash_uint32 aa = state[0], bb = state[1], cc = state[2], dd = state[3], ee = state[4]; in RIPEMD160Transform()
493 php_hash_uint32 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_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_sha.c224 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()
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 php_hash_uint32 a = state[0], b = state[1], c = state[2], d = state[3]; in SHA256Transform()
483 php_hash_uint32 e = state[4], f = state[5], g = state[6], h = state[7]; in SHA256Transform()
792 php_hash_uint64 a = state[0], b = state[1], c = state[2], d = state[3]; in SHA512Transform()
[all …]
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 Dphp_hash_sha.h39 php_hash_uint32 state[5]; /* state (ABCD) */ member
55 php_hash_uint32 state[8]; /* state */ member
66 php_hash_uint32 state[8]; /* state */ member
77 php_hash_uint64 state[8]; /* state */ member
88 php_hash_uint64 state[8]; /* state */ member
H A Dhash_md.c358 php_hash_uint32 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 php_hash_uint32 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_ripemd.h27 php_hash_uint32 state[4]; /* state (ABCD) */ member
33 php_hash_uint32 state[5]; /* state (ABCD) */ member
39 php_hash_uint32 state[8]; /* state (ABCD) */ member
45 php_hash_uint32 state[10]; /* state (ABCD) */ member
/PHP-5.5/sapi/cli/
H A Dphp_http_parser.c196 enum state enum
332 enum state state = (enum state) parser->state; in php_http_parser_execute() local
362 if (state == s_req_path) in php_http_parser_execute()
364 if (state == s_req_path || state == s_req_schema || state == s_req_schema_slash in php_http_parser_execute()
365 || state == s_req_schema_slash_slash || state == s_req_port in php_http_parser_execute()
366 || state == s_req_query_string_start || state == s_req_query_string in php_http_parser_execute()
368 || state == s_req_fragment_start || state == s_req_fragment) in php_http_parser_execute()
380 switch (state) { in php_http_parser_execute()
443 state = s_res_HT; in php_http_parser_execute()
448 state = s_res_HTT; in php_http_parser_execute()
[all …]
/PHP-5.5/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-5.5/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-5.5/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-5.5/ext/pdo/
H A Dpdo_sqlstate.c32 const char state[5]; member
325 zend_hash_add(&err_hash, info->state, sizeof(info->state), &info, sizeof(info), NULL); in pdo_sqlstate_init_error_table()
331 const char *pdo_sqlstate_state_to_description(char *state) in pdo_sqlstate_state_to_description() argument
334 if (SUCCESS == zend_hash_find(&err_hash, state, sizeof(err_initializer[0].state), in pdo_sqlstate_state_to_description()
/PHP-5.5/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-5.5/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-5.5/ext/sybase_ct/tests/
H A Dtest.inc13 // {{{ bool sybase_msg_handler(int msgnumber, int severity, int state, int line, string text)
15 function sybase_msg_handler($msgnumber, $severity, $state, $line, $text) {
17 "*** Caught Sybase Server Message #%d [Severity %d, state %d] at line %d\n '%s'\n",
20 $state,
30 …// {{{ public static bool static_handler(int msgnumber, int severity, int state, int line, string …
32 static function static_handler($msgnumber, $severity, $state, $line, $text) {
33 return sybase_msg_handler($msgnumber, $severity, $state, $line, $text);
37 // {{{ public bool static_handler(int msgnumber, int severity, int state, int line, string text)
39 function handler($msgnumber, $severity, $state, $line, $text) {
40 return sybase_msg_handler($msgnumber, $severity, $state, $line, $text);
/PHP-5.5/ext/standard/
H A Drand.c153 static inline void php_mt_initialize(php_uint32 seed, php_uint32 *state) in php_mt_initialize() argument
160 register php_uint32 *s = state; in php_mt_initialize()
161 register php_uint32 *r = state; in php_mt_initialize()
179 register php_uint32 *state = BG(state); in php_mt_reload() local
180 register php_uint32 *p = state; in php_mt_reload()
187 *p = twist(p[M-N], p[0], state[0]); in php_mt_reload()
189 BG(next) = state; in php_mt_reload()
198 php_mt_initialize(seed, BG(state)); in php_mt_srand()
/PHP-5.5/sapi/milter/
H A Dphp_milter.c100 int state;
154 MG(state) = MLFI_INIT; in ZEND_DECLARE_MODULE_GLOBALS()
158 MG(state) = MLFI_NONE; in ZEND_DECLARE_MODULE_GLOBALS()
229 MG(state) = MLFI_NONE; in mlfi_connect()
259 MG(state) = MLFI_HELO; in mlfi_helo()
263 MG(state) = MLFI_NONE; in mlfi_helo()
303 MG(state) = MLFI_NONE; in mlfi_envfrom()
343 MG(state) = MLFI_NONE; in mlfi_envrcpt()
382 MG(state) = MLFI_NONE; in mlfi_header()
410 MG(state) = MLFI_EOH; in mlfi_eoh()
[all …]
/PHP-5.5/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-5.5/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 63 milliseconds

1234567