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

/PHP_TRUNK/ext/standard/
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 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 Dbasic_functions.c3405 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */
3415 if (!strncmp(pe->key, "TZ", pe->key_len)) {
4076 pe.key_len = (int)strlen(pe.key);
4079 if (pe.key_len < setting_len - 1) {
4088 zend_hash_str_del(&BG(putenv_ht), pe.key, pe.key_len);
4093 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4127 zend_hash_str_add_mem(&BG(putenv_ht), pe.key, pe.key_len, &pe, sizeof(putenv_entry));
4129 if (!strncmp(pe.key, "TZ", pe.key_len)) {
[all...]
H A Dbasic_functions.h250 int key_len; member in struct:__anon231
/PHP_TRUNK/Zend/
H A Dzend_API.c1343 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n) /* {{{ */ argument
1348 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1353 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len) /* {{{ */ argument
1358 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1363 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b) /* {{{ */ argument
1368 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1373 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r) /* {{{ */ argument
1378 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1383 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d) /* {{{ */ argument
1388 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len,
1393 add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str) argument
1403 add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str) argument
1413 add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length) argument
1423 add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value) argument
1588 add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str) argument
1598 add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, size_t length) argument
1696 add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long n) argument
1710 add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b) argument
1724 add_property_null_ex(zval *arg, const char *key, size_t key_len) argument
1738 add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r) argument
1752 add_property_double_ex(zval *arg, const char *key, size_t key_len, double d) argument
1766 add_property_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str) argument
1780 add_property_string_ex(zval *arg, const char *key, size_t key_len, const char *str) argument
1794 add_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size_t length) argument
1808 add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value) argument
[all...]
H A Dzend_API.h376 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
377 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
378 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b);
379 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
380 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
381 ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
382 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str);
383 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length);
384 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
422 ZEND_API zval *add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, cons
[all...]
/PHP_TRUNK/ext/dba/
H A Ddba.c247 size_t key_len; \
251 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\
258 size_t key_len; \
274 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {\
561 size_t key_len; local
567 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {
575 if (info->hnd->update(info, key_str, key_len, val, val_len, mode) == SUCCESS) {
999 if(info->hnd->exists(info, key_str, key_len) == SUCCESS) {
1040 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len)) != NULL) {
1057 size_t key_len; local
[all...]
/PHP_TRUNK/ext/hash/
H A Dhash.c214 static inline void php_hash_hmac_prep_key(unsigned char *K, const php_hash_ops *ops, void *context, const unsigned char *key, const size_t key_len) { argument
216 if (key_len > ops->block_size) {
219 ops->hash_update(context, key, key_len);
222 memcpy(K, key, key_len);
240 size_t algo_len, data_len, key_len; local
247 &key, &key_len, &raw_output) == FAILURE) {
269 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len);
332 size_t algo_len, key_len = 0; local
339 if (zend_parse_parameters(argc, "s|ls", &algo, &algo_len, &options, &key, &key_len) == FAILURE) {
350 key_len <
[all...]
/PHP_TRUNK/ext/intl/calendar/
H A Dcalendar_methods.cpp146 size_t key_len, local
152 &key, &key_len, &locale, &locale_len, &commonly_used) == FAILURE) {
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_sort.c543 int key_len = 0; local
590 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, 0);
591 if(!key_len) {
595 key = emalloc(key_len);
596 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, key, key_len);
598 if(!key_len) {
601 RETVAL_STRINGL((char *)key, key_len - 1);
/PHP_TRUNK/ext/intl/msgformat/
H A Dmsgformat_helpers.cpp540 int key_len; local
542 if (intl_charFromString(key, &key_char, &key_len,
584 int key_len; local
586 if (intl_charFromString(key, &key_char, &key_len,
/PHP_TRUNK/ext/mcrypt/
H A Dmcrypt.c334 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
546 size_t key_len, iv_len; local
553 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAILURE) {
562 if (key_len == 0) {
566 key_s = emalloc(key_len);
567 memset(key_s, 0, key_len);
572 if (key_len > max_key_size) {
573 php_error_docref(NULL, E_WARNING, "Key size too large; supplied length: %d, max: %d", key_len, max_key_size);
576 key_size = (int)key_len;
578 memcpy(key_s, key, key_len);
1245 php_mcrypt_do_crypt(char* cipher, const char *key, size_t key_len, const char *data, size_t data_len, char *mode, const char *iv, size_t iv_len, size_t dencrypt, zval* return_value) argument
1311 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1327 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1344 size_t cipher_len, key_len, data_len, iv_len = 0; local
1360 size_t cipher_len, key_len, data_len, iv_len = 0; local
1376 size_t cipher_len, key_len, data_len, iv_len = 0; local
1392 size_t 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 = (int)Z_STRLEN_P(tmpzval);
217 if (keyl < key_len) {
218 key_len = keyl;
236 result = mcrypt_generic_init(mcrypt_module, key, key_len, iv);
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c399 int key_len = MAX_LENGTH_OF_LONG + sizeof("->") + Z_STRLEN(op_array->literals[i]); local
400 key = zend_string_alloc(key_len, 0);
403 int key_len; local
405 key_len = Z_STRLEN_P(class_name) + sizeof("::") + Z_STRLEN(op_array->literals[i]);
406 key = zend_string_alloc(key_len, 0);
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c917 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len) argument
940 ZCG(key_len) = 0;
1009 ZCG(key_len) = 0;
1033 ZCG(key_len) = 0;
1039 *key_len = ZCG(key_len) = key_length;
1043 static inline char *accel_make_persistent_key(zend_file_handle *file_handle, int *key_len) argument
1045 return accel_make_persistent_key_ex(file_handle, strlen(file_handle->filename), key_len);
1294 key_length = ZCG(key_len);
1482 if (!ZCG(key_len)) {
[all...]
H A DZendAccelerator.h245 int key_len; member in struct:_zend_accel_globals
308 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len);
/PHP_TRUNK/ext/phar/
H A Dphar_object.c2978 size_t key_len = 0; local
2988 if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "l|s", &algo, &key, &key_len) != SUCCESS) {
3010 PHAR_G(openssl_privatekey_len) = key_len;
H A Dutil.c41 static int phar_call_openssl_signverify(int is_sign, php_stream *fp, zend_off_t end, char *key, int key_len, char **signature, int *signature_len);
1391 static int phar_call_openssl_signverify(int is_sign, php_stream *fp, zend_off_t end, char *key, int key_len, char **signature, int *signature_len) /* {{{ */ argument
1400 ZVAL_STRINGL(&zp[2], key, key_len);
/PHP_TRUNK/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;
/PHP_TRUNK/main/
H A Dphp_ini.c284 size_t key_len; local
290 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1;
301 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1;
304 zend_str_tolower(key, key_len); /* host names are case-insensitive. */
310 if (key && key_len > 0) {
312 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) {
313 key_len--;
314 key[key_len]
[all...]

Completed in 110 milliseconds