Home
last modified time | relevance | path

Searched refs:cost (Results 1 – 14 of 14) sorted by relevance

/php-src/ext/standard/tests/password/
H A Dpassword_needs_rehash.phpt17 // Valid with cost the same
18 …$10$MTIzNDU2Nzg5MDEyMzQ1Nej0NmcAWSLR.oP7XOR9HD/vjUuOj100y', PASSWORD_BCRYPT, array('cost' => 10)));
20 // Valid with cost the same, additional params
23 // Invalid, different (lower) cost
24 …y$10$MTIzNDU2Nzg5MDEyMzQ1Nej0NmcAWSLR.oP7XOR9HD/vjUuOj100y', PASSWORD_BCRYPT, array('cost' => 0)));
26 // Invalid, different (higher) cost
27 …$10$MTIzNDU2Nzg5MDEyMzQ1Nej0NmcAWSLR.oP7XOR9HD/vjUuOj100y', PASSWORD_BCRYPT, array('cost' => 11)));
29 // Valid with cost the default
30 $cost = str_pad(PASSWORD_BCRYPT_DEFAULT_COST, 2, '0', STR_PAD_LEFT);
31 var_dump(password_needs_rehash('$2y$'.$cost.'$MTIzNDU2Nzg5MDEyMzQ1Nej0NmcAWSLR.oP7XOR9HD/vjUuOj100y…
[all …]
H A Dpassword_bcrypt_errors.phpt7 password_hash("foo", PASSWORD_BCRYPT, array("cost" => 3));
13 var_dump(password_hash("foo", PASSWORD_BCRYPT, array("cost" => 32)));
25 Invalid bcrypt cost parameter specified: 3
26 Invalid bcrypt cost parameter specified: 32
H A Dpassword_hash_error_argon2.phpt48 Memory cost is outside of allowed memory range
49 Time cost is outside of allowed time range
51 Memory cost is outside of allowed memory range
52 Time cost is outside of allowed time range
H A Dpassword_get_info.phpt25 ["cost"]=>
36 ["cost"]=>
H A Dpassword_removed_salt_option.phpt10 var_dump(strlen(password_hash("rasmuslerdorf", PASSWORD_BCRYPT, array("cost" => 7, "salt" => "useso…
/php-src/ext/date/lib/
H A Dastro.c266 double cost; in timelib_astro_rise_set_altitude() local
267 cost = (sind(altit) - sind(lat) * sind(sdec)) / (cosd(lat) * cosd(sdec)); in timelib_astro_rise_set_altitude()
269 if (cost >= 1.0) { in timelib_astro_rise_set_altitude()
274 } else if (cost <= -1.0) { in timelib_astro_rise_set_altitude()
281 t = acosd(cost) / 15.0; /* The diurnal arc, hours */ in timelib_astro_rise_set_altitude()
/php-src/ext/standard/
H A Dpassword.c123 zend_long cost = PHP_PASSWORD_BCRYPT_COST; in php_password_bcrypt_get_info() local
130 sscanf(ZSTR_VAL(hash), "$2y$" ZEND_LONG_FMT "$", &cost); in php_password_bcrypt_get_info()
131 add_assoc_long(return_value, "cost", cost); in php_password_bcrypt_get_info()
182 zend_long cost = PHP_PASSWORD_BCRYPT_COST; in php_password_bcrypt_hash() local
190 cost = zval_get_long(zcost); in php_password_bcrypt_hash()
193 if (cost < 4 || cost > 31) { in php_password_bcrypt_hash()
194 zend_value_error("Invalid bcrypt cost parameter specified: " ZEND_LONG_FMT, cost); in php_password_bcrypt_hash()
198 …sh_format_len = snprintf(hash_format, sizeof(hash_format), "$2y$%02" ZEND_LONG_FMT_SPEC "$", cost); in php_password_bcrypt_hash()
/php-src/ext/standard/tests/crypt/
H A Dbcrypt_invalid_cost.phpt2 Test BCRYPT with invalid cost
/php-src/ext/sodium/tests/
H A Dbug78516.phpt2 Bug #78516 (password_hash(): Memory cost is not in allowed range)
/php-src/ext/opcache/jit/
H A Dzend_jit_vm_helpers.c348 …D_OPCODE_HANDLER_RET ZEND_FASTCALL zend_jit_trace_counter_helper(uint32_t cost ZEND_OPCODE_HANDLER… in zend_jit_trace_counter_helper()
357 *(ZEND_OP_TRACE_INFO(opline, offset)->counter) -= cost; in zend_jit_trace_counter_helper()
H A Dzend_jit_ir.c2274 static int _zend_jit_hybrid_hot_counter_stub(zend_jit_ctx *jit, uint32_t cost) in _zend_jit_hybrid_hot_counter_stub() argument
2281 ref = ir_SUB_I16(ir_LOAD_I16(addr), ir_CONST_I16(cost)); in _zend_jit_hybrid_hot_counter_stub()
2347 static int _zend_jit_hybrid_trace_counter_stub(zend_jit_ctx *jit, uint32_t cost) in _zend_jit_hybrid_trace_counter_stub() argument
2355 ref = ir_SUB_I16(ir_LOAD_I16(addr), ir_CONST_I16(cost)); in _zend_jit_hybrid_trace_counter_stub()
/php-src/ext/mbstring/libmbfl/
H A DLICENSE309 than the cost of performing this distribution.
/php-src/ext/bcmath/libbcmath/
H A DLICENSE312 than the cost of performing this distribution.
/php-src/build/
H A Dlibtool.m45855 # does not break anything, and helps significantly (at the cost of a little

Completed in 77 milliseconds