Searched refs:key_len (Results 1 - 19 of 19) 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 = (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);
H A Dmcrypt.c297 &cipher, &cipher_len, &key, &key_len, &data, &data_len, &mode, &iv, &iv_len) == FAILURE) { \
522 size_t key_len, iv_len; local
529 if (zend_parse_parameters(ZEND_NUM_ARGS(), "rss", &mcryptind, &key, &key_len, &iv, &iv_len) == FAILURE) {
540 if (key_len == 0) {
544 key_s = emalloc(key_len);
545 memset(key_s, 0, key_len);
550 if (key_len > max_key_size) {
551 php_error_docref(NULL, E_WARNING, "Key size too large; supplied length: %d, max: %d", key_len, max_key_size);
554 key_size = (int)key_len;
556 memcpy(key_s, key, key_len);
1226 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
1292 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; local
1308 size_t cipher_len, key_len, data_len, mode_len, iv_len = 0; local
[all...]
/PHP_TRUNK/ext/standard/
H A Dbasic_functions.h251 int key_len; member in struct:__anon3
H A Dbasic_functions.c3427 if (!strncmp(*env, pe->key, pe->key_len) && (*env)[pe->key_len] == '=') { /* found it */
3437 if (!strncmp(pe->key, "TZ", pe->key_len)) {
4105 pe.key_len = (int)strlen(pe.key);
4108 if (pe.key_len < setting_len - 1) {
4117 zend_hash_str_del(&BG(putenv_ht), pe.key, pe.key_len);
4122 if (!strncmp(*env, pe.key, pe.key_len) && (*env)[pe.key_len] == '=') { /* found it */
4156 zend_hash_str_add_mem(&BG(putenv_ht), pe.key, pe.key_len, &pe, sizeof(putenv_entry));
4158 if (!strncmp(pe.key, "TZ", pe.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 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...]
/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/opcache/
H A DZendAccelerator.h257 int key_len; member in struct:_zend_accel_globals
320 char *accel_make_persistent_key(const char *path, int path_length, int *key_len);
H A DZendAccelerator.c913 char *accel_make_persistent_key(const char *path, int path_length, int *key_len) argument
1056 *key_len = ZCG(key_len) = key_length;
1061 *key_len = path_length;
1400 key_length = ZCG(key_len);
1642 if (ZCG(key_len)) {
1644 key_length = ZCG(key_len);
1931 ZCG(key_len) = 0;
/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);
1390 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
1399 ZVAL_STRINGL(&zp[2], key, key_len);
H A Dphar_object.c2993 size_t key_len = 0; local
3003 if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "l|s", &algo, &key, &key_len) != SUCCESS) {
3025 PHAR_G(openssl_privatekey_len) = key_len;
/PHP_TRUNK/ext/session/
H A Dmod_files.c111 size_t key_len; local
116 key_len = strlen(key);
117 if (key_len <= data->dirdepth ||
118 buflen < (strlen(data->basedir) + 2 * data->dirdepth + key_len + 5 + sizeof(FILE_PREFIX))) {
132 memcpy(buf + n, key, key_len);
133 n += key_len;
/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) {\
571 size_t key_len; local
577 if ((key_len = php_dba_make_key(key, &key_str, &key_free)) == 0) {
585 if (info->hnd->update(info, key_str, key_len, val, val_len, mode) == SUCCESS) {
1000 if(info->hnd->exists(info, key_str, key_len) == SUCCESS) {
1041 if((val = info->hnd->fetch(info, key_str, key_len, skip, &len)) != NULL) {
1058 size_t key_len; local
[all...]
/PHP_TRUNK/main/
H A Dphp_ini.c280 size_t key_len; local
286 key_len = Z_STRLEN_P(arg1) - sizeof("PATH") + 1;
297 key_len = Z_STRLEN_P(arg1) - sizeof("HOST") + 1;
300 zend_str_tolower(key, key_len); /* host names are case-insensitive. */
306 if (key && key_len > 0) {
308 while (key_len > 0 && (key[key_len - 1] == '/' || key[key_len - 1] == '\\')) {
309 key_len--;
310 key[key_len]
[all...]
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_sort.c550 int key_len = 0; local
598 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, NULL, 0);
599 if(!key_len) {
603 key_str = zend_string_alloc(key_len, 0);
604 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, (uint8_t*)ZSTR_VAL(key_str), key_len);
606 if(!key_len) {
609 ZSTR_LEN(key_str) = key_len - 1;
/PHP_TRUNK/ext/opcache/Optimizer/
H A Dcompact_literals.c424 int key_len = MAX_LENGTH_OF_LONG + sizeof("->") + Z_STRLEN(op_array->literals[i]); local
425 key = zend_string_alloc(key_len, 0);
428 int key_len; local
430 key_len = Z_STRLEN_P(class_name) + sizeof("::") + Z_STRLEN(op_array->literals[i]);
431 key = zend_string_alloc(key_len, 0);
/PHP_TRUNK/Zend/
H A Dzend_API.c1331 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n) /* {{{ */ argument
1336 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1341 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len) /* {{{ */ argument
1346 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1351 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b) /* {{{ */ argument
1356 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1361 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r) /* {{{ */ argument
1366 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len, &tmp);
1371 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d) /* {{{ */ argument
1376 ret = zend_symtable_str_update(Z_ARRVAL_P(arg), key, key_len,
1381 add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str) argument
1391 add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str) argument
1401 add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length) argument
1411 add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value) argument
1576 add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, const char *str) argument
1586 add_get_assoc_stringl_ex(zval *arg, const char *key, uint key_len, const char *str, size_t length) argument
1684 add_property_long_ex(zval *arg, const char *key, size_t key_len, zend_long n) argument
1698 add_property_bool_ex(zval *arg, const char *key, size_t key_len, zend_long b) argument
1712 add_property_null_ex(zval *arg, const char *key, size_t key_len) argument
1726 add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r) argument
1740 add_property_double_ex(zval *arg, const char *key, size_t key_len, double d) argument
1754 add_property_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str) argument
1768 add_property_string_ex(zval *arg, const char *key, size_t key_len, const char *str) argument
1782 add_property_stringl_ex(zval *arg, const char *key, size_t key_len, const char *str, size_t length) argument
1796 add_property_zval_ex(zval *arg, const char *key, size_t key_len, zval *value) argument
[all...]
H A Dzend_API.h392 ZEND_API int add_assoc_long_ex(zval *arg, const char *key, size_t key_len, zend_long n);
393 ZEND_API int add_assoc_null_ex(zval *arg, const char *key, size_t key_len);
394 ZEND_API int add_assoc_bool_ex(zval *arg, const char *key, size_t key_len, int b);
395 ZEND_API int add_assoc_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
396 ZEND_API int add_assoc_double_ex(zval *arg, const char *key, size_t key_len, double d);
397 ZEND_API int add_assoc_str_ex(zval *arg, const char *key, size_t key_len, zend_string *str);
398 ZEND_API int add_assoc_string_ex(zval *arg, const char *key, size_t key_len, char *str);
399 ZEND_API int add_assoc_stringl_ex(zval *arg, const char *key, size_t key_len, char *str, size_t length);
400 ZEND_API int add_assoc_zval_ex(zval *arg, const char *key, size_t key_len, zval *value);
438 ZEND_API zval *add_get_assoc_string_ex(zval *arg, const char *key, uint key_len, cons
[all...]
/PHP_TRUNK/ext/hash/
H A Dhash.c215 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
217 if (key_len > ops->block_size) {
220 ops->hash_update(context, key, key_len);
223 memcpy(K, key, key_len);
241 size_t algo_len, data_len, key_len; local
248 &key, &key_len, &raw_output) == FAILURE) {
274 php_hash_hmac_prep_key(K, ops, context, (unsigned char *) key, key_len);
337 size_t algo_len, key_len = 0; local
344 if (zend_parse_parameters(argc, "s|ls", &algo, &algo_len, &options, &key, &key_len) == FAILURE) {
355 key_len <
[all...]

Completed in 48 milliseconds