Searched defs:key_len (Results 1 - 25 of 37) sorted by relevance

12

/PHP_5_6/ext/opcache/Optimizer/
H A Dcompact_literals.c101 int key_len; local
358 key_len = MAX_LENGTH_OF_LONG + sizeof("->") + Z_STRLEN(op_array->literals[i].constant);
359 key = emalloc(key_len);
360 key_len = snprintf(key, key_len-1, "%d->%s", info[i].u.num, Z_STRVAL(op_array->literals[i].constant));
363 key_len = Z_STRLEN_P(class_name) + sizeof("::") + Z_STRLEN(op_array->literals[i].constant);
364 key = emalloc(key_len);
372 key_len = Z_STRLEN(op_array->literals[i].constant)+1;
374 h = zend_hash_func(key, key_len);
378 zend_hash_quick_find(&hash, key, key_len,
[all...]
/PHP_5_6/ext/standard/
H A Dcrypt_sha256.c354 size_t key_len; local
384 key_len = strlen(key);
387 char *tmp = (char *) alloca(key_len + __alignof__(uint32_t));
388 key = copied_key = memcpy(tmp + __alignof__(uint32_t) - (tmp - (char *) 0) % __alignof__(uint32_t), key, key_len);
402 sha256_process_bytes(key, key_len, &ctx);
415 sha256_process_bytes(key, key_len, &alt_ctx);
421 sha256_process_bytes(key, key_len, &alt_ctx);
428 for (cnt = key_len; cnt > 32; cnt -= 32) {
435 for (cnt = key_len; cnt > 0; cnt >>= 1) {
439 sha256_process_bytes(key, key_len,
[all...]
H A Dcrypt_sha512.c387 size_t key_len; local
418 key_len = strlen(key);
421 char *tmp = (char *) alloca (key_len + __alignof__ (uint64_t));
423 memcpy(tmp + __alignof__(uint64_t) - (tmp - (char *) 0) % __alignof__(uint64_t), key, key_len);
436 sha512_process_bytes(key, key_len, &ctx);
449 sha512_process_bytes(key, key_len, &alt_ctx);
455 sha512_process_bytes(key, key_len, &alt_ctx);
462 for (cnt = key_len; cnt > 64; cnt -= 64) {
469 for (cnt = key_len; cnt > 0; cnt >>= 1) {
473 sha512_process_bytes(key, key_len,
[all...]
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_EXISTENT;
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 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.c662 uint key_len; local
668 &key, &key_len, &num_ind, 0, NULL);
688 zend_hash_update(new_hash, key, key_len, (void *)elem, sizeof(zval *), (void **)&dest_elem);
H A Dbasic_functions.h248 int key_len; member in struct:__anon3
/PHP_5_6/ext/intl/calendar/
H A Dcalendar_methods.cpp146 int key_len, local
152 &key, &key_len, &locale, &locale_len, &commonly_used) == FAILURE) {
/PHP_5_6/ext/intl/collator/
H A Dcollator_sort.c553 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_6/ext/intl/msgformat/
H A Dmsgformat_helpers.cpp550 int key_len; local
552 if (intl_charFromString(key, &key_char, &key_len,
593 int key_len; local
595 if (intl_charFromString(key, &key_char, &key_len,
/PHP_5_6/ext/mcrypt/
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);
H A Dmcrypt.c334 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
545 int key_len, iv_len; local
552 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAILURE) {
561 if (key_len == 0) {
565 key_s = emalloc(key_len);
566 memset(key_s, 0, key_len);
571 if (key_len > max_key_size) {
572 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Key size too large; supplied length: %d, max: %d", key_len, max_key_size);
575 key_size = key_len;
577 memcpy(key_s, key, key_len);
1240 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 dencrypt, zval* return_value TSRMLS_DC) argument
1304 int cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1320 int cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1337 int cipher_len, key_len, data_len, iv_len = 0; local
1353 int cipher_len, key_len, data_len, iv_len = 0; local
1369 int cipher_len, key_len, data_len, iv_len = 0; local
1385 int cipher_len, key_len, data_len, iv_len = 0; local
[all...]
/PHP_5_6/ext/phar/
H A Ddirstream.c551 uint key_len; local
614 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->manifest, &str_key, &key_len, &unused, 0, NULL);
617 if (key_len > path_len &&
631 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key_ex(&phar->virtual_dirs, &str_key, &key_len, &unused, 0, NULL);
634 if (key_len > path_len &&
H A Dstream.c906 uint key_len, new_key_len; local
912 HASH_KEY_NON_EXISTENT != (key_type = zend_hash_get_current_key_ex(&phar->manifest, &str_key, &key_len, &unused, 0, NULL)) &&
917 key_len > from_len &&
921 new_key_len = key_len + to_len - from_len;
924 memcpy(new_str_key + to_len, str_key + from_len, key_len - from_len);
938 HASH_KEY_NON_EXISTENT != (key_type = zend_hash_get_current_key_ex(&phar->virtual_dirs, &str_key, &key_len, &unused, 0, NULL));
941 if (key_len >= from_len &&
943 (key_len == from_len || IS_SLASH(str_key[from_len]))) {
945 new_key_len = key_len + to_len - from_len;
948 memcpy(new_str_key + to_len, str_key + from_len, key_len
[all...]
H A Dutil.c41 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);
1402 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
1414 ZVAL_STRINGL(zkey, key, key_len, 1);
/PHP_5_6/ext/soap/
H A Dphp_schema.c2144 uint key_len; local
2163 zend_hash_get_current_key_ex((*tmp)->attributes, &key, &key_len, NULL, 0, NULL);
2164 zend_hash_add(ht, key, key_len, &newAttr, sizeof(sdlAttributePtr), NULL);
H A Dphp_http.c810 uint key_len; local
820 zend_hash_get_current_key_ex(Z_ARRVAL_PP(cookies), &key, &key_len, NULL, 0, NULL); local
833 smart_str_appendl(&soap_headers, key, key_len-1);
/PHP_5_6/ext/sockets/
H A Dsockets.c801 uint key_len; local
816 switch (zend_hash_get_current_key_ex(Z_ARRVAL_P(sock_array), &key, &key_len, &num_key, 0, NULL)) {
818 zend_hash_add(new_hash, key, key_len, (void *)element, sizeof(zval *), (void **)&dest_element);
/PHP_5_6/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_6/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_6/ext/wddx/
H A Dwddx.c505 uint key_len; local
529 if (zend_hash_get_current_key_ex(objhash, &key, &key_len, &idx, 0, NULL) == HASH_KEY_IS_STRING) {
532 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name);
535 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx);
536 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC);
557 uint key_len; local
602 ent_type = zend_hash_get_current_key_ex(target_hash, &key, &key_len, &idx, 0, NULL);
605 php_wddx_serialize_var(packet, *ent, key, key_len TSRMLS_CC);
607 key_len = slprintf(tmp_buf, sizeof(tmp_buf), "%ld", idx);
608 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_C
[all...]
/PHP_5_6/ext/hash/
H A Dhash.c220 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_6/ext/session/
H A Dmod_files.c76 size_t key_len; local
81 key_len = strlen(key);
82 if (key_len <= data->dirdepth ||
83 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) {
97 memcpy(buf + n, key, key_len);
98 n += key_len;
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) {
/PHP_5_6/ext/json/
H A Djson.c181 uint key_len; local
187 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
265 uint key_len; local
271 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
310 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC);

Completed in 42 milliseconds

12