Searched refs:key_len (Results 1 - 25 of 32) sorted by relevance

12

/PHP_5_4/ext/standard/
H A Dcrypt_sha256.c360 size_t key_len; local
390 key_len = strlen(key);
393 char *tmp = (char *) alloca(key_len + __alignof__(uint32_t));
394 key = copied_key = memcpy(tmp + __alignof__(uint32_t) - (tmp - (char *) 0) % __alignof__(uint32_t), key, key_len);
408 sha256_process_bytes(key, key_len, &ctx);
421 sha256_process_bytes(key, key_len, &alt_ctx);
427 sha256_process_bytes(key, key_len, &alt_ctx);
434 for (cnt = key_len; cnt > 32; cnt -= 32) {
441 for (cnt = key_len; cnt > 0; cnt >>= 1) {
445 sha256_process_bytes(key, key_len,
[all...]
H A Dcrypt_sha512.c393 size_t key_len; local
424 key_len = strlen(key);
427 char *tmp = (char *) alloca (key_len + __alignof__ (uint64_t));
429 memcpy(tmp + __alignof__(uint64_t) - (tmp - (char *) 0) % __alignof__(uint64_t), key, key_len);
442 sha512_process_bytes(key, key_len, &ctx);
455 sha512_process_bytes(key, key_len, &alt_ctx);
461 sha512_process_bytes(key, key_len, &alt_ctx);
468 for (cnt = key_len; cnt > 64; cnt -= 64) {
475 for (cnt = key_len; cnt > 0; cnt >>= 1) {
479 sha512_process_bytes(key, key_len,
[all...]
H A Dbasic_functions.h248 int key_len; member in struct:__anon236
H A Dhttp.c37 uint key_len; local
59 (key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTANT;
62 if (key_type == HASH_KEY_IS_STRING && key_len && key[key_len-1] == '\0') {
64 key_len -= 1;
72 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) != SUCCESS) {
76 zend_unmangle_property_name(key, key_len-1, &tmp, (const char**)&key);
77 key_len = strlen(key);
87 ekey = php_raw_url_encode(key, key_len, &ekey_len);
89 ekey = php_url_encode(key, key_len,
[all...]
H A Dvar.c359 int key_len, tmp_len; local
360 key = php_addcslashes(hash_key->arKey, hash_key->nKeyLength - 1, &key_len, 0, "'\\", 2 TSRMLS_CC);
361 tmp_str = php_str_to_str_ex(key, key_len, "\0", 1, "' . \"\\0\" . '", 12, &tmp_len, 0, NULL);
855 uint key_len; local
860 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
873 php_var_serialize_string(buf, key, key_len - 1);
H A Dstreamsfuncs.c665 uint key_len; local
674 &key, &key_len, &num_ind, 0, NULL);
697 zend_hash_update(new_hash, key, key_len, (void *)elem, sizeof(zval *), (void **)&dest_elem);
H A Dbasic_functions.c3424 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */
3434 if (!strncmp(pe->key, "TZ", pe->key_len)) {
4051 pe.key_len = strlen(pe.key);
4054 if (pe.key_len < setting_len - 1) {
4063 zend_hash_del(&BG(putenv_ht), pe.key, pe.key_len+1);
4068 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4098 zend_hash_add(&BG(putenv_ht), pe.key, pe.key_len + 1, (void **) &pe, sizeof(putenv_entry), NULL);
4100 if (!strncmp(pe.key, "TZ", pe.key_len)) {
[all...]
/PHP_5_4/ext/intl/collator/
H A Dcollator_sort.c552 int key_len = 0; local
599 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, 0);
600 if(!key_len) {
604 key = emalloc(key_len);
605 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, key_len);
607 if(!key_len) {
610 RETURN_STRINGL((char *)key, key_len - 1, 0);
/PHP_5_4/ext/phar/
H A Ddirstream.c573 uint key_len; local
636 HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL);
641 if (key_len > path_len &&
657 HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL);
662 if (key_len > path_len &&
H A Dstream.c915 uint key_len, new_key_len; local
921 HASH_KEY_NON_EXISTANT != (key_type = zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL)) &&
928 key_len > from_len &&
932 new_key_len = key_len + to_len - from_len;
935 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len);
955 HASH_KEY_NON_EXISTANT != (key_type = zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL));
960 if (key_len >= from_len &&
962 (key_len == from_len || IS_SLASH(str_key[from_len]))) {
964 new_key_len = key_len + to_len - from_len;
967 memcpy(new_str_key + to_len, str_key + from_len, key_len
[all...]
/PHP_5_4/ext/reflection/
H A Dphp_reflection.c438 uint key_len; local
444 zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len, &num_index, 0, &pos);
608 uint key_len; local
615 || zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_KEY_IS_STRING
616 || zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0)
793 uint key_len; local
813 zend_hash_get_current_key_ex(static_variables, &key, &key_len, &num_index, 0, &pos);
3344 uint key_len; local
3349 zend_hash_get_current_key_ex(&ce->properties_info, &key, &key_len, &num_index, 0, &pos);
/PHP_5_4/ext/session/
H A Dmod_user_class.c75 int key_len, val_len; local
79 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) {
99 int key_len, val_len; local
103 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &key, &key_len, &val, &val_len) == FAILURE) {
116 int key_len; local
120 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &key, &key_len) == FAILURE) {
H A Dmod_files.c107 size_t key_len; local
112 key_len = strlen(key);
113 if (key_len <= data->dirdepth ||
114 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) {
128 memcpy(buf + n, key, key_len);
129 n += key_len;
/PHP_5_4/ext/soap/
H A Dphp_sdl.c1803 uint key_len; local
1806 if (zend_hash_get_current_key_ex(ht, &key, &key_len, &index, 0, NULL) == HASH_KEY_IS_STRING) {
1807 WSDL_CACHE_PUT_INT(key_len, out);
1808 WSDL_CACHE_PUT_N(key, key_len, out);
2447 uint key_len; local
2482 if (zend_hash_get_current_key_ex(headers, &key, &key_len, &index, 0, NULL) == HASH_KEY_IS_STRING) {
2483 zend_hash_add(pheaders, key, key_len, (void*)&pheader, sizeof(sdlSoapBindingFunctionHeaderPtr), NULL);
2515 uint key_len; local
2543 if (zend_hash_get_current_key_ex(params, &key, &key_len, &index, 0, NULL) == HASH_KEY_IS_STRING) {
2544 zend_hash_add(pparams, key, key_len, (voi
2562 uint key_len; local
2611 uint key_len; local
2723 uint key_len; local
2957 uint key_len; local
3380 uint key_len; local
3388 zend_hash_get_current_key_ex(SOAP_GLOBAL(mem_cache), &key, &key_len, &idx, 0, &pos); local
3392 zend_hash_del(SOAP_GLOBAL(mem_cache), key, key_len); local
[all...]
H A Dsoap.c1410 int key_len; local
1418 key_len = Z_STRLEN_PP(tmp_function);
1419 key = emalloc(key_len + 1);
1420 zend_str_tolower_copy(key, Z_STRVAL_PP(tmp_function), key_len);
1422 if (zend_hash_find(EG(function_table), key, key_len+1, (void**)&f) == FAILURE) {
1429 zend_hash_update(service->soap_functions.ft, key, key_len+1, &function_copy, sizeof(zval *), NULL);
1437 int key_len; local
1440 key_len = Z_STRLEN_P(function_name);
1441 key = emalloc(key_len + 1);
1442 zend_str_tolower_copy(key, Z_STRVAL_P(function_name), key_len);
[all...]
/PHP_5_4/main/
H A Dphp_ini.c283 uint key_len; local
289 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1;
300 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1;
303 zend_str_tolower(key, key_len); /* host names are case-insensitive. */
309 if (key && key_len > 0) {
311 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) {
312 key_len--;
313 key[key_len]
[all...]
/PHP_5_4/Zend/
H A Dzend_API.c1196 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n) /* {{{ */ argument
1203 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
1207 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len) /* {{{ */ argument
1214 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
1218 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b) /* {{{ */ argument
1225 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
1229 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, int r) /* {{{ */ argument
1236 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (void *) &tmp, sizeof(zval *), NULL);
1240 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d) /* {{{ */ argument
1247 return zend_symtable_update(Z_ARRVAL_P(arg), key, key_len, (voi
1251 add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str, int duplicate) argument
1262 add_assoc_stringl_ex(zval *arg, const char *key, uint key_len, char *str, uint length, int duplicate) argument
1273 add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value) argument
1445 add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str, void **dest, int duplicate) argument
1456 add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, uint length, void **dest, int duplicate) argument
1511 add_property_long_ex(zval *arg, const char *key, uint key_len, long n TSRMLS_DC) argument
1529 add_property_bool_ex(zval *arg, const char *key, uint key_len, int b TSRMLS_DC) argument
1565 add_property_resource_ex(zval *arg, const char *key, uint key_len, long n TSRMLS_DC) argument
1583 add_property_double_ex(zval *arg, const char *key, uint key_len, double d TSRMLS_DC) argument
1601 add_property_string_ex(zval *arg, const char *key, uint key_len, const char *str, int duplicate TSRMLS_DC) argument
1619 add_property_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, uint length, int duplicate TSRMLS_DC) argument
1637 add_property_zval_ex(zval *arg, const char *key, uint key_len, zval *value TSRMLS_DC) argument
[all...]
H A Dzend_API.h374 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, long n);
375 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len);
376 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b);
377 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, int r);
378 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d);
379 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str, int duplicate);
380 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, uint key_len, char *str, uint length, int duplicate);
381 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value);
416 ZEND_API int add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str, void **dest, int duplicate);
417 ZEND_API int add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, cons
[all...]
H A Dzend_builtin_functions.c910 uint key_len; local
915 zend_hash_get_current_key_ex(&ce->properties_info, &key, &key_len, &num_index, 0, &pos);
990 uint key_len; local
1015 if (zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos) == HASH_KEY_IS_STRING) {
1016 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) == SUCCESS) {
1017 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name);
1077 uint key_len; local
1082 if (zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_KEY_IS_STRING) {
1088 zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0) {
1092 (len != key_len
[all...]
/PHP_5_4/ext/dba/
H A Ddba.c247 size_t key_len; \
251 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\
258 size_t key_len; \
274 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\
561 size_t key_len; local
567 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {
575 if (info->hnd->update(info, key_str, key_len, val, val_len, mode TSRMLS_CC) == SUCCESS) {
994 if(info->hnd->exists(info, key_str, key_len TSRMLS_CC) == SUCCESS) {
1035 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len TSRMLS_CC)) != NULL) {
1050 int key_len; local
[all...]
/PHP_5_4/ext/hash/
H A Dhash.c208 int algo_len, data_len, key_len, i; local
215 &key, &key_len, &raw_output) == FAILURE) {
238 if (key_len > ops->block_size) {
240 ops->hash_update(context, (unsigned char *) key, key_len);
245 memcpy(K, key, key_len);
323 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); local
329 if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == FAILURE) {
340 key_len <= 0) {
361 if (key_len > ops->block_size) {
363 ops->hash_update(context, (unsigned char *) key, key_len);
[all...]
/PHP_5_4/ext/mcrypt/
H A Dmcrypt.c369 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
586 int key_len, iv_len; local
593 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAILURE) {
602 if (key_len == 0) {
606 key_s = emalloc(key_len);
607 memset(key_s, 0, key_len);
612 if (key_len > max_key_size) {
613 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Key size too large; supplied length: %d, max: %d", key_len, max_key_size);
616 key_size = key_len;
618 memcpy(key_s, key, key_len);
1168 php_mcrypt_do_crypt(char* cipher, const char *key, int key_len, const char *data, int data_len, char *mode, const char *iv, int iv_len, int argc, int dencrypt, zval* return_value TSRMLS_DC) argument
1281 int cipher_len, key_len, data_len, iv_len = 0; local
1297 int cipher_len, key_len, data_len, iv_len = 0; local
1313 int cipher_len, key_len, data_len, iv_len = 0; local
1329 int cipher_len, key_len, data_len, iv_len = 0; local
1345 int cipher_len, key_len, data_len, iv_len = 0; local
1361 int cipher_len, key_len, data_len, iv_len = 0; local
[all...]
H A Dmcrypt_filter.c154 int encrypt = 1, iv_len, key_len, keyl, result; local
204 key_len = Z_STRLEN_PP(tmpzval);
217 if (keyl < key_len) {
218 key_len = keyl;
236 result = mcrypt_generic_init(mcrypt_module, key, key_len, iv);
/PHP_5_4/ext/json/
H A Djson.c170 uint key_len; local
176 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
254 uint key_len; local
260 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
299 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC);
/PHP_5_4/ext/wddx/
H A Dwddx.c507 uint key_len; local
531 if (zend_hash_get_current_key_ex(objhash, &key, &key_len, &idx, 0, NULL) == HASH_KEY_IS_STRING) {
534 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name);
537 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx);
538 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC);
559 uint key_len; local
604 ent_type = zend_hash_get_current_key_ex(target_hash, &key, &key_len, &idx, 0, NULL);
607 php_wddx_serialize_var(packet, *ent, key, key_len TSRMLS_CC);
609 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx);
610 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_C
[all...]

Completed in 65 milliseconds

12