Home
last modified time | relevance | path

Searched refs:state (Results 26 – 50 of 140) sorted by relevance

123456

/PHP-7.4/ext/hash/
H A Dhash_md.c356 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16];
432 state[0] += a;
433 state[1] += b;
434 state[2] += c;
435 state[3] += d;
458 uint32_t a = state[0], b = state[1], c = state[2], d = state[3], x[16]; in MD4Transform()
516 state[0] += a; in MD4Transform()
517 state[1] += b; in MD4Transform()
518 state[2] += c; in MD4Transform()
638 context->state[32+i] = (context->state[16+i] ^ context->state[i]); in MD2_Transform()
[all …]
H A Dphp_hash_md.h61 uint32_t state[4]; /* state (ABCD) */ member
77 uint32_t state[4]; member
88 unsigned char state[48]; member
H A Dhash_snefru.c126 context->state[8+j] = ((unsigned)input[i] << 24) | ((unsigned)input[i+1] << 16) | in SnefruTransform()
129 Snefru(context->state); in SnefruTransform()
130 ZEND_SECURE_ZERO(&context->state[8], sizeof(uint32_t) * 8); in SnefruTransform()
180 context->state[14] = context->count[0]; in PHP_SNEFRUFinal()
181 context->state[15] = context->count[1]; in PHP_SNEFRUFinal()
182 Snefru(context->state); in PHP_SNEFRUFinal()
185 digest[j] = (unsigned char) ((context->state[i] >> 24) & 0xff); in PHP_SNEFRUFinal()
186 digest[j + 1] = (unsigned char) ((context->state[i] >> 16) & 0xff); in PHP_SNEFRUFinal()
187 digest[j + 2] = (unsigned char) ((context->state[i] >> 8) & 0xff); in PHP_SNEFRUFinal()
188 digest[j + 3] = (unsigned char) (context->state[i] & 0xff); in PHP_SNEFRUFinal()
H A Dhash_sha3.c67 # define readLane(x, y) load64(ctx->state+sizeof(uint64_t)*idx(x, y))
68 # define writeLane(x, y, v) store64(ctx->state+sizeof(uint64_t)*idx(x, y), v)
69 # define XORLane(x, y, v) xor64(ctx->state+sizeof(uint64_t)*idx(x, y), v)
71 # define readLane(x, y) (((uint64_t*)ctx->state)[idx(x,y)])
72 # define writeLane(x, y, v) (((uint64_t*)ctx->state)[idx(x,y)] = v)
73 # define XORLane(x, y, v) (((uint64_t*)ctx->state)[idx(x,y)] ^= v)
171 ctx->state[ctx->pos++] ^= *(buf++); in PHP_SHA3_Update()
188 ctx->state[ctx->pos++] ^= 0x06; in PHP_SHA3_Final()
189 ctx->state[block_size-1] ^= 0x80; in PHP_SHA3_Final()
195 memcpy(digest, ctx->state, bs); in PHP_SHA3_Final()
H A Dphp_hash_haval.h25 uint32_t state[8]; member
31 void (*Transform)(uint32_t state[8], const unsigned char block[128]);
H A Dphp_hash_fnv.h47 uint32_t state; member
51 uint64_t state; member
H A Dhash_gost.c211 uint32_t l, r, t, key[8], u[8], v[8], w[8], s[8], *h = context->state, *m = data; in Gost()
213 memcpy(u, context->state, sizeof(u)); in Gost()
233 context->state[i + 8] += data[i] + temp; in GostTransform()
234 temp = context->state[i + 8] < data[i] ? 1 : (context->state[i + 8] == data[i] ? temp : 0); in GostTransform()
297 memcpy(l, &context->state[8], sizeof(l)); in PHP_GOSTFinal()
301 digest[j] = (unsigned char) (context->state[i] & 0xff); in PHP_GOSTFinal()
302 digest[j + 1] = (unsigned char) ((context->state[i] >> 8) & 0xff); in PHP_GOSTFinal()
303 digest[j + 2] = (unsigned char) ((context->state[i] >> 16) & 0xff); in PHP_GOSTFinal()
304 digest[j + 3] = (unsigned char) ((context->state[i] >> 24) & 0xff); in PHP_GOSTFinal()
/PHP-7.4/ext/standard/tests/array/
H A Dcompact.phpt7 $state = "CA";
10 $location_vars = array("c\\u0327ity", "state");
20 ["state"]=>
/PHP-7.4/ext/standard/
H A Dmt_rand.c98 static inline void php_mt_initialize(uint32_t seed, uint32_t *state) in php_mt_initialize() argument
105 register uint32_t *s = state; in php_mt_initialize()
106 register uint32_t *r = state; in php_mt_initialize()
124 register uint32_t *state = BG(state); in php_mt_reload() local
125 register uint32_t *p = state; in php_mt_reload()
133 *p = twist(p[M-N], p[0], state[0]); in php_mt_reload()
140 *p = twist_php(p[M-N], p[0], state[0]); in php_mt_reload()
143 BG(next) = state; in php_mt_reload()
152 php_mt_initialize(seed, BG(state)); in php_mt_srand()
H A Dsha1.c164 context->state[0] = 0x67452301; in PHP_SHA1Init()
165 context->state[1] = 0xefcdab89; in PHP_SHA1Init()
166 context->state[2] = 0x98badcfe; in PHP_SHA1Init()
255 uint32_t state[5]; in SHA1Transform()
258 uint32_t a = state[0], b = state[1], c = state[2];
259 uint32_t d = state[3], e = state[4], x[16], tmp;
351 state[0] += a;
352 state[1] += b;
353 state[2] += c;
354 state[3] += d;
[all …]
/PHP-7.4/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;
H A Diterator_041.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;
H A Diterator_041b.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;
/PHP-7.4/ext/session/tests/
H A Dsession_set_save_handler_class_006.phpt22 public $state = 'ok';
24 $this->state = 'destroyed';
48 ["state"]=>
52 ["state"]=>
/PHP-7.4/ext/tokenizer/tests/
H A Dbad_character.phpt32 Warning: Unexpected character in input: '%s' (ASCII=1) state=0 in %s on line %d
38 Warning: Unexpected character in input: '%s' (ASCII=1) state=0 in %s on line %d
40 Warning: Unexpected character in input: '%s' (ASCII=2) state=0 in %s on line %d
42 Warning: Unexpected character in input: '%s' (ASCII=3) state=0 in %s on line %d
/PHP-7.4/Zend/
H A Dzend_virtual_cwd.c124 # define CWD_STATE_FREE_ERR(state) CWD_STATE_FREE(state) argument
260 cwd_state *state; in virtual_getcwd_ex() local
262 state = &CWDG(cwd); in virtual_getcwd_ex()
276 if (state->cwd_length == 2 && state->cwd[state->cwd_length-1] == ':') { in virtual_getcwd_ex()
288 if (!state->cwd) { in virtual_getcwd_ex()
1054 } else if (IS_UNC_PATH(state->cwd, state->cwd_length)) { in virtual_file_ex()
1173 tmp = erealloc(state->cwd, state->cwd_length+1); in virtual_file_ex()
1176 memcpy(state->cwd, resolved_path, state->cwd_length+1); in virtual_file_ex()
1179 *state = old_state; in virtual_file_ex()
1187 tmp = erealloc(state->cwd, state->cwd_length+1); in virtual_file_ex()
[all …]
/PHP-7.4/ext/pdo_mysql/
H A Dget_error_codes.php21 foreach ($codes as $code => $state) {
23 printf(" case %-{$maxlen}s: return \"%s\";\n", $code, $state);
/PHP-7.4/ext/mysqlnd/
H A Dmysqlnd_commands.c42 &conn->state, in MYSQLND_METHOD()
68 &conn->state, in MYSQLND_METHOD()
95 &conn->state, in MYSQLND_METHOD()
140 &conn->state, in MYSQLND_METHOD()
171 &conn->state, in MYSQLND_METHOD()
208 &conn->state, in MYSQLND_METHOD()
248 &conn->state, in MYSQLND_METHOD()
277 &conn->state, in MYSQLND_METHOD()
303 &conn->state, in MYSQLND_METHOD()
325 &conn->state, in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_debug.c545 state = PARSER_WAIT_COLON; in MYSQLND_METHOD()
591 state = PARSER_WAIT_COLON; in MYSQLND_METHOD()
607 state = PARSER_WAIT_COLON; in MYSQLND_METHOD()
611 state = PARSER_WAIT_COLON; in MYSQLND_METHOD()
615 state = PARSER_WAIT_COLON; in MYSQLND_METHOD()
619 state = PARSER_WAIT_COLON; in MYSQLND_METHOD()
623 state = PARSER_WAIT_COLON; in MYSQLND_METHOD()
644 state = PARSER_WAIT_COLON; in MYSQLND_METHOD()
648 state = PARSER_WAIT_COLON; in MYSQLND_METHOD()
654 state = PARSER_WAIT_COLON; in MYSQLND_METHOD()
[all …]
H A Dmysqlnd_ps.c157 stmt->state = MYSQLND_STMT_PREPARED; in MYSQLND_METHOD()
216 stmt->state = MYSQLND_STMT_PREPARED; in MYSQLND_METHOD()
220 stmt->state = MYSQLND_STMT_PREPARED; in MYSQLND_METHOD()
382 stmt->state = MYSQLND_STMT_INITTED; in mysqlnd_stmt_prepare_read_eof()
387 stmt->state = MYSQLND_STMT_PREPARED; in mysqlnd_stmt_prepare_read_eof()
502 stmt->state = MYSQLND_STMT_PREPARED; in MYSQLND_METHOD()
510 stmt->state = MYSQLND_STMT_INITTED; in MYSQLND_METHOD()
540 stmt->state = MYSQLND_STMT_PREPARED; in mysqlnd_stmt_execute_parse_response()
557 stmt->state = MYSQLND_STMT_EXECUTED; in mysqlnd_stmt_execute_parse_response()
687 stmt->state = MYSQLND_STMT_PREPARED; in MYSQLND_METHOD()
[all …]
/PHP-7.4/ext/pdo_dblib/
H A Dpdo_dblib.c88 char *state = "HY000"; in ZEND_GET_MODULE() local
120 case SYBEFCON: state = "01002"; break; in ZEND_GET_MODULE()
121 case SYBEMEM: state = "HY001"; break; in ZEND_GET_MODULE()
122 case SYBEPWD: state = "28000"; break; in ZEND_GET_MODULE()
124 strcpy(einfo->sqlstate, state); in ZEND_GET_MODULE()
/PHP-7.4/ext/readline/
H A Dreadline_cli.c416 if (!(*state % 2)) { in cli_completion_generator_ht()
418 (*state)++; in cli_completion_generator_ht()
433 (*state)++; in cli_completion_generator_ht()
437 static char *cli_completion_generator_var(const char *text, size_t textlen, int *state) /* {{{ */ in cli_completion_generator_var() argument
442 tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, symbol_table, NULL); in cli_completion_generator_var()
452 static char *cli_completion_generator_ini(const char *text, size_t textlen, int *state) /* {{{ */ in cli_completion_generator_ini() argument
456 tmp = retval = cli_completion_generator_ht(text + 1, textlen - 1, state, EG(ini_directives), NULL); in cli_completion_generator_ini()
469 char *retval = cli_completion_generator_ht(text, textlen, state, ht, (void**)&func); in cli_completion_generator_func()
478 static char *cli_completion_generator_class(const char *text, size_t textlen, int *state) /* {{{ */ in cli_completion_generator_class() argument
481 char *retval = cli_completion_generator_ht(text, textlen, state, EG(class_table), (void**)&ce); in cli_completion_generator_class()
[all …]
/PHP-7.4/ext/hash/sha3/generic32lc/
H A DKeccakP-1600-inplace32BI.c87 UINT32 *stateAsHalfLanes = (UINT32*)state; in KeccakP1600_SetBytesInLaneToZero()
110 void KeccakP1600_Initialize(void *state) in KeccakP1600_Initialize() argument
112 memset(state, 0, 200); in KeccakP1600_Initialize()
123 UINT32 *stateAsHalfLanes = (UINT32*)state; in KeccakP1600_AddByte()
143 UINT32 *stateAsHalfLanes = (UINT32*)state; in KeccakP1600_AddBytesInLane()
169 UINT32 * pS = (UINT32*)state; in KeccakP1600_AddLanes()
224 UINT32 * pS = (UINT32 *)state; in KeccakP1600_OverwriteLanes()
269 UINT32 *stateAsHalfLanes = (UINT32*)state; in KeccakP1600_OverwriteWithZeroes()
284 UINT32 *stateAsHalfLanes = (UINT32*)state; in KeccakP1600_ExtractBytesInLane()
1150 KeccakP1600_Permute_Nrounds(state, 12); in KeccakP1600_Permute_12rounds()
[all …]
/PHP-7.4/ext/soap/tests/bugs/
H A Dbug47049.phpt12 $software_list = array(array('name' => 'package', 'version' => '1.2.3', 'state' => 'installed'));
19 …</name><version xsi:type="xsd:string">1.2.3</version><state xsi:type="xsd:string">installed</state
/PHP-7.4/sapi/phpdbg/
H A Dphpdbg_prompt.c222 state->line++; in phpdbg_line_init()
233 state->in_code = 1; in phpdbg_line_init()
238 state->code[state->code_len] = '\0'; in phpdbg_line_init()
240 free(state->code); in phpdbg_line_init()
251 state->code = realloc(state->code, state->code_len + cmd_len + 1); in phpdbg_line_init()
254 if (state->code) { in phpdbg_line_init()
255 memcpy(&state->code[state->code_len], cmd, cmd_len); in phpdbg_line_init()
310 if (state.code) { in phpdbg_string_init()
311 free(state.code); in phpdbg_string_init()
331 if (state.code) { in phpdbg_try_file_init()
[all …]

Completed in 128 milliseconds

123456