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

/PHP_TRUNK/ext/mcrypt/
H A Dmcrypt_filter.c154 int encrypt = 1, iv_len, key_len, keyl, result; local
204 key_len = Z_STRLEN_P(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) { \
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 = key_len;
578 memcpy(key_s, key, key_len);
1241 php_mcrypt_do_crypt(char* cipher, const char *key, int key_len, const char *data, int 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...]
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.h246 int key_len; member in struct:__anon174
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 Dbasic_functions.c3408 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */
3418 if (!strncmp(pe->key, "TZ", pe->key_len)) {
4079 pe.key_len = strlen(pe.key);
4082 if (pe.key_len < setting_len - 1) {
4091 zend_hash_str_del(&BG(putenv_ht), pe.key, pe.key_len);
4096 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4126 zend_hash_str_add_mem(&BG(putenv_ht), pe.key, pe.key_len, &pe, sizeof(putenv_entry));
4128 if (!strncmp(pe.key, "TZ", pe.key_len)) {
[all...]
/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/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.c2976 size_t key_len = 0; local
2986 if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "l|s", &algo, &key, &key_len) != SUCCESS) {
3008 PHAR_G(openssl_privatekey_len) = key_len;
/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/opcache/
H A DZendAccelerator.h241 int key_len; member in struct:_zend_accel_globals
302 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len TSRMLS_DC);
H A DZendAccelerator.c908 char *accel_make_persistent_key_ex(zend_file_handle *file_handle, int path_length, int *key_len TSRMLS_DC)
931 ZCG(key_len) = 0;
1000 ZCG(key_len) = 0;
1024 ZCG(key_len) = 0;
1030 *key_len = ZCG(key_len) = key_length;
1034 static inline char *accel_make_persistent_key(zend_file_handle *file_handle, int *key_len TSRMLS_DC)
1036 return accel_make_persistent_key_ex(file_handle, strlen(file_handle->filename), key_len TSRMLS_CC);
1293 key_length = ZCG(key_len);
1481 if (!ZCG(key_len)) {
[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 TSRMLS_CC, "s|ls", &algo, &algo_len, &options, &key, &key_len) == FAILURE) {
350 key_len <
[all...]
/PHP_TRUNK/main/
H A Dphp_ini.c284 uint 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...]
/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/Zend/
H A Dzend_API.h377 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, zend_long n);
378 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len);
379 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b);
380 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, zend_resource *r);
381 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d);
382 ZEND_API int add_assoc_str_ex(zval *arg, const char *key, uint key_len, zend_string *str);
383 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str);
384 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, uint key_len, char *str, size_t length);
385 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value);
423 ZEND_API zval *add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, cons
[all...]
H A Dzend_API.c1365 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, uint key_len, zend_long n) /* {{{ */ argument
1370 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1375 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, uint key_len) /* {{{ */ argument
1380 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1385 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, uint key_len, int b) /* {{{ */ argument
1390 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1395 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, uint key_len, zend_resource *r) /* {{{ */ argument
1400 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1405 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, uint key_len, double d) /* {{{ */ argument
1410 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len,
1415 add_assoc_str_ex(zval *arg, const char *key, uint key_len, zend_string *str) argument
1425 add_assoc_string_ex(zval *arg, const char *key, uint key_len, char *str) argument
1435 add_assoc_stringl_ex(zval *arg, const char *key, uint key_len, char *str, size_t length) argument
1445 add_assoc_zval_ex(zval *arg, const char *key, uint key_len, zval *value) argument
1610 add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str) argument
1620 add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, size_t length) argument
1718 add_property_long_ex(zval *arg, const char *key, uint key_len, zend_long n TSRMLS_DC) argument
1732 add_property_bool_ex(zval *arg, const char *key, uint key_len, zend_long b TSRMLS_DC) argument
1760 add_property_resource_ex(zval *arg, const char *key, uint key_len, zend_resource *r TSRMLS_DC) argument
1774 add_property_double_ex(zval *arg, const char *key, uint key_len, double d TSRMLS_DC) argument
1788 add_property_str_ex(zval *arg, const char *key, uint key_len, zend_string *str TSRMLS_DC) argument
1802 add_property_string_ex(zval *arg, const char *key, uint key_len, const char *str TSRMLS_DC) argument
1816 add_property_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, size_t length TSRMLS_DC) argument
1830 add_property_zval_ex(zval *arg, const char *key, uint key_len, zval *value TSRMLS_DC) argument
[all...]
/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/opcache/Optimizer/
H A Dcompact_literals.c393 int key_len = MAX_LENGTH_OF_LONG + sizeof("->") + Z_STRLEN(op_array->literals[i]); local
394 key = zend_string_alloc(key_len, 0);
397 int key_len; local
399 key_len = Z_STRLEN_P(class_name) + sizeof("::") + Z_STRLEN(op_array->literals[i]);
400 key = zend_string_alloc(key_len, 0);

Completed in 45 milliseconds