| /PHP_5_5/ext/standard/ |
| H A D | crypt_sha256.c | 360 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 D | crypt_sha512.c | 393 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 D | basic_functions.h | 248 int key_len; member in struct:__anon223
|
| H A D | http.c | 37 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 TSRMLS_CC) != SUCCESS) { 76 zend_unmangle_property_name_ex(key, key_len, &tmp, (const char**)&key, &key_len); 86 ekey = php_raw_url_encode(key, key_len, &ekey_len); 88 ekey = php_url_encode(key, key_len, [all...] |
| H A D | var.c | 359 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); 857 uint key_len; local 862 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); 875 php_var_serialize_string(buf, key, key_len - 1);
|
| H A D | streamsfuncs.c | 661 uint key_len; local 670 &key, &key_len, &num_ind, 0, NULL); 693 zend_hash_update(new_hash, key, key_len, (void *)elem, sizeof(zval *), (void **)&dest_elem);
|
| /PHP_5_5/ext/intl/collator/ |
| H A D | collator_sort.c | 553 int key_len = 0; local 600 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, 0); 601 if(!key_len) { 605 key = emalloc(key_len); 606 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, key_len); 608 if(!key_len) { 611 RETURN_STRINGL((char *)key, key_len - 1, 0);
|
| /PHP_5_5/ext/intl/msgformat/ |
| H A D | msgformat_helpers.cpp | 547 int key_len; local 549 if (intl_charFromString(key, &key_char, &key_len, 590 int key_len; local 592 if (intl_charFromString(key, &key_char, &key_len,
|
| /PHP_5_5/ext/hash/ |
| H A D | hash.c | 220 static inline void php_hash_hmac_prep_key(unsigned char *K, const php_hash_ops *ops, void *context, const unsigned char *key, const int key_len) { argument 222 if (key_len > ops->block_size) { 225 ops->hash_update(context, key, key_len); 228 memcpy(K, key, key_len); 244 int algo_len, data_len, key_len; local 251 &key, &key_len, &raw_output) == FAILURE) { 273 php_hash_hmac_prep_key((unsigned char *) K, ops, context, (unsigned char *) key, key_len); 336 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); local 342 if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == FAILURE) { 353 key_len < [all...] |
| /PHP_5_5/ext/json/ |
| H A D | json.c | 181 uint key_len; local 187 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); 266 uint key_len; local 273 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos); 312 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC);
|
| /PHP_5_5/ext/mcrypt/ |
| H A D | mcrypt.c | 369 &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 D | mcrypt_filter.c | 154 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_5/ext/session/ |
| H A D | mod_user_class.c | 75 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 D | mod_files.c | 101 size_t key_len; local 106 key_len = strlen(key); 107 if (key_len <= data->dirdepth || 108 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) { 122 memcpy(buf + n, key, key_len); 123 n += key_len;
|
| /PHP_5_5/ext/soap/ |
| H A D | php_schema.c | 2101 uint key_len; local 2120 zend_hash_get_current_key_ex((*tmp)->attributes, &key, &key_len, NULL, 0, NULL); 2121 zend_hash_add(ht, key, key_len, &newAttr, sizeof(sdlAttributePtr), NULL);
|
| /PHP_5_5/ext/phar/ |
| H A D | dirstream.c | 577 uint key_len; local 640 HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->manifest, &key, &key_len, &unused, 0, NULL); 645 if (key_len > path_len && 661 HASH_KEY_NON_EXISTANT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &key, &key_len, &unused, 0, NULL); 666 if (key_len > path_len &&
|
| H A D | stream.c | 915 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...] |
| H A D | util.c | 41 static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC); 1657 static int phar_call_openssl_signverify(int is_sign, php_stream *fp, off_t end, char *key, int key_len, char **signature, int *signature_len TSRMLS_DC) /* {{{ */ argument 1669 ZVAL_STRINGL(zkey, key, key_len, 1);
|
| /PHP_5_5/ext/intl/calendar/ |
| H A D | calendar_methods.cpp | 146 int key_len, local 152 &key, &key_len, &locale, &locale_len, &commonly_used) == FAILURE) {
|
| /PHP_5_5/main/ |
| H A D | php_ini.c | 283 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_5/ext/dba/ |
| H A D | dba.c | 242 size_t key_len; \ 246 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\ 253 size_t key_len; \ 269 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\ 548 size_t key_len; local 554 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) { 562 if (info->hnd->update(info, key_str, key_len, val, val_len, mode TSRMLS_CC) == SUCCESS) { 978 if(info->hnd->exists(info, key_str, key_len TSRMLS_CC) == SUCCESS) { 1019 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len TSRMLS_CC)) != NULL) { 1034 int key_len; local [all...] |
| /PHP_5_5/ext/opcache/ |
| H A D | ZendAccelerator.h | 260 int key_len; member in struct:_zend_accel_globals 325 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len TSRMLS_DC);
|
| /PHP_5_5/ext/zip/ |
| H A D | php_zip.c | 1026 uint key_len; local 1039 zend_hash_get_current_key_ex(obj->prop_handler, &key, &key_len, &num_key, 0, &pos); 1045 zend_hash_update(props, key, key_len, (void *)&val, sizeof(zval *), NULL);
|
| /PHP_5_5/ext/wddx/ |
| H A D | wddx.c | 507 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...] |
| /PHP_5_5/ext/sockets/ |
| H A D | sockets.c | 799 uint key_len; local 814 switch (zend_hash_get_current_key_ex(Z_ARRVAL_P(sock_array), &key, &key_len, &num_key, 0, NULL)) { 816 zend_hash_add(new_hash, key, key_len, (void *)element, sizeof(zval *), (void **)&dest_element);
|