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

12

/PHP_5_3/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 Darray.c1965 uint key_len = 0; local
1986 zend_hash_get_current_key_ex(Z_ARRVAL_P(stack), &key, &key_len, &index, 0, NULL); local
1988 zend_delete_global_variable(key, key_len - 1 TSRMLS_CC);
1990 zend_hash_del_key_or_index(Z_ARRVAL_P(stack), key, key_len, index, (key) ? HASH_DEL_KEY : HASH_DEL_INDEX); local
2013 } else if (!key_len && index >= Z_ARRVAL_P(stack)->nNextFreeElement - 1) {
H A Dbasic_functions.h243 int key_len; member in struct:__anon208
H A Dhttp.c35 int arg_sep_len, key_len, ekey_len, key_type, newprefix_len; local
57 (key_type = zend_hash_get_current_key_ex(ht, &key, &key_len, &idx, 0, NULL)) != HASH_KEY_NON_EXISTANT;
60 if (key_type == HASH_KEY_IS_STRING && key_len && key[key_len-1] == '\0') {
62 key_len -= 1;
70 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) != SUCCESS) {
74 zend_unmangle_property_name(key, key_len-1, &tmp, &key);
75 key_len = strlen(key);
84 ekey = php_url_encode(key, key_len, &ekey_len);
148 ekey = php_url_encode(key, key_len,
[all...]
H A Dvar.c362 int key_len, tmp_len; local
363 key = php_addcslashes(hash_key->arKey, hash_key->nKeyLength - 1, &key_len, 0, "'\\", 2 TSRMLS_CC);
364 tmp_str = php_str_to_str_ex(key, key_len, "\0", 1, "' . \"\\0\" . '", 12, &tmp_len, 0, NULL);
831 uint key_len; local
836 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
849 php_var_serialize_string(buf, key, key_len - 1);
/PHP_5_3/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_3/ext/dba/
H A Ddba.c241 size_t key_len; \
245 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\
252 size_t key_len; \
268 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {\
543 size_t key_len; local
549 if ((key_len = php_dba_make_key(key, &key_str, &key_free TSRMLS_CC)) == 0) {
560 if (info->hnd->update(info, key_str, key_len, v, val_len, mode TSRMLS_CC) == SUCCESS) {
567 if (info->hnd->update(info, key_str, key_len, val, val_len, mode TSRMLS_CC) == SUCCESS) {
984 if(info->hnd->exists(info, key_str, key_len TSRMLS_CC) == SUCCESS) {
1025 if((val = info->hnd->fetch(info, key_str, key_len, ski
1043 int key_len; local
[all...]
/PHP_5_3/ext/hash/
H A Dhash.c200 int algo_len, data_len, key_len, i; local
207 &key, &key_len, &raw_output) == FAILURE) {
230 if (key_len > ops->block_size) {
232 ops->hash_update(context, (unsigned char *) key, key_len);
237 memcpy(K, key, key_len);
315 int algo_len, key_len = 0, argc = ZEND_NUM_ARGS(); local
321 if (zend_parse_parameters(argc TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == FAILURE) {
332 key_len <= 0) {
353 if (key_len > ops->block_size) {
355 ops->hash_update(context, (unsigned char *) key, key_len);
[all...]
/PHP_5_3/ext/json/
H A Djson.c143 uint key_len; local
149 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
201 uint key_len; local
208 i = zend_hash_get_current_key_ex(myht, &key, &key_len, &index, 0, &pos);
242 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC);
/PHP_5_3/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_3/ext/reflection/
H A Dphp_reflection.c415 uint key_len; local
421 zend_hash_get_current_key_ex(&ce->constants_table, &key, &key_len, &num_index, 0, &pos);
585 uint key_len; local
592 || zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_KEY_IS_STRING
593 || zend_binary_strcasecmp(key, key_len-1, mptr->common.function_name, len) == 0)
768 uint key_len; local
788 zend_hash_get_current_key_ex(static_variables, &key, &key_len, &num_index, 0, &pos);
3097 uint key_len; local
3101 if (zend_hash_get_current_key_ex(CE_STATIC_MEMBERS(ce), &key, &key_len, &num_index, 0, &pos) != FAILURE && key) {
3105 zend_unmangle_property_name(key, key_len
3220 uint key_len; local
[all...]
/PHP_5_3/ext/session/
H A Dmod_files.c101 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_3/ext/soap/
H A Dphp_schema.c2101 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);
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
2722 uint key_len; local
2956 uint key_len; local
3379 uint key_len; local
3387 zend_hash_get_current_key_ex(SOAP_GLOBAL(mem_cache), &key, &key_len, &idx, 0, &pos); local
3391 zend_hash_del(SOAP_GLOBAL(mem_cache), key, key_len); local
[all...]
/PHP_5_3/ext/sockets/
H A Dsockets.c745 uint key_len; local
760 switch (zend_hash_get_current_key_ex(Z_ARRVAL_P(sock_array), &key, &key_len, &num_key, 0, NULL)) {
762 zend_hash_add(new_hash, key, key_len, (void *)element, sizeof(zval *), (void **)&dest_element);
/PHP_5_3/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...]
/PHP_5_3/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_3/ext/phar/
H A Ddirstream.c577 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 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...]
H A Dphar_object.c3102 int key_len = 0; local
3112 if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "l|s", &algo, &key, &key_len) != SUCCESS) {
3134 PHAR_G(openssl_privatekey_len) = key_len;
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);
1658 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
1670 ZVAL_STRINGL(zkey, key, key_len, 1);
/PHP_5_3/Zend/
H A Dzend_builtin_functions.c885 uint key_len; local
892 zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos);
895 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name);
957 uint key_len; local
982 if (zend_hash_get_current_key_ex(properties, &key, &key_len, &num_index, 0, &pos) == HASH_KEY_IS_STRING) {
983 if (zend_check_property_access(zobj, key, key_len-1 TSRMLS_CC) == SUCCESS) {
984 zend_unmangle_property_name(key, key_len-1, &class_name, &prop_name);
1037 uint key_len; local
1044 zend_hash_get_current_key_ex(&ce->function_table, &key, &key_len, &num_index, 0, &pos) != HASH_KEY_IS_STRING ||
1045 zend_binary_strcasecmp(key, key_len
[all...]
/PHP_5_3/ext/zip/
H A Dphp_zip.c1020 uint key_len; local
1033 zend_hash_get_current_key_ex(obj->prop_handler, &key, &key_len, &num_key, 0, &pos);
1039 zend_hash_update(props, key, key_len, (void *)&val, sizeof(zval *), NULL);

Completed in 85 milliseconds

12