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

/PHP_TRUNK/ext/phar/
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 TSRMLS_DC);
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 TSRMLS_DC) /* {{{ */ argument
1400 ZVAL_STRINGL(&zp[2], key, key_len);
H A Dphar_object.c2977 size_t key_len = 0; local
2987 if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "l|s", &algo, &key, &key_len) != SUCCESS) {
3009 PHAR_G(openssl_privatekey_len) = key_len;
/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 TSRMLS_CC, "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/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/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/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.h250 int key_len; member in struct:__anon3
/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 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) {
999 if(info->hnd->exists(info, key_str, key_len TSRMLS_CC) == SUCCESS) {
1040 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len TSRMLS_CC)) != NULL) {
1057 size_t key_len; local
[all...]
/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/main/
H A Dphp_ini.c285 size_t key_len; local
291 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1;
302 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1;
305 zend_str_tolower(key, key_len); /* host names are case-insensitive. */
311 if (key && key_len > 0) {
313 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) {
314 key_len--;
315 key[key_len]
[all...]
/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() TSRMLS_CC, "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 TSRMLS_CC, 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);
1241 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 TSRMLS_DC) argument
1307 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1323 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1340 size_t cipher_len, key_len, data_len, iv_len = 0; local
1356 size_t cipher_len, key_len, data_len, iv_len = 0; local
1372 size_t cipher_len, key_len, data_len, iv_len = 0; local
1388 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/Zend/
H A Dzend_API.c1341 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n) /* {{{ */ argument
1346 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1351 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len) /* {{{ */ argument
1356 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1361 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b) /* {{{ */ argument
1366 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1371 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r) /* {{{ */ argument
1376 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1381 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d) /* {{{ */ argument
1386 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len,
1391 add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str) argument
1401 add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str) argument
1411 add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length) argument
1421 add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value) argument
1586 add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str) argument
1596 add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, size_t length) argument
1694 add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long n TSRMLS_DC) argument
1708 add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b TSRMLS_DC) argument
1736 add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r TSRMLS_DC) argument
1750 add_property_double_ex(zval *arg, const char *key, size_t key_len, double d TSRMLS_DC) argument
1764 add_property_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str TSRMLS_DC) argument
1778 add_property_string_ex(zval *arg, const char *key, size_t key_len, const char *str TSRMLS_DC) argument
1792 add_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size_t length TSRMLS_DC) argument
1806 add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value TSRMLS_DC) argument
[all...]
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.h245 int key_len; member in struct:_zend_accel_globals
305 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len TSRMLS_DC);
/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);

Completed in 35 milliseconds