Home
last modified time | relevance | path

Searched refs:algo (Results 1 – 25 of 43) sorted by relevance

12

/PHP-7.4/ext/hash/tests/
H A Dhaval.phpt8 $algo = sprintf('haval%d,%d',$bits,$pass);
9 echo $algo . ': ' . hash($algo,'') . "\n";
15 $algo = sprintf('haval%d,%d',$bits,$pass);
16 echo $algo . ': ' . hash($algo,'abc') . "\n";
22 $algo = sprintf('haval%d,%d',$bits,$pass);
23 …echo $algo . ': ' . hash($algo,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ0123456789abcde…
H A Dmhash_004.phpt8 $algo = MHASH_MD5;
9 var_dump($algo);
10 var_dump(bin2hex(mhash($algo, "test")));
11 var_dump($algo);
H A Dhash_hkdf_edges.phpt6 /* Prototype : string hkdf ( string $algo , string $ikm [, int $length , string $info = '' , s…
18 echo "Non-crypto algo name case-sensitivity:\n";
27 Non-crypto algo name case-sensitivity:
H A Dhash-clone.phpt8 foreach ($algos as $algo) {
9 var_dump($algo);
10 $orig = hash_init($algo);
18 foreach ($algos as $algo) {
19 var_dump($algo);
20 $orig = hash_init($algo);
H A Dhash_copy_001.phpt8 foreach ($algos as $algo) {
9 var_dump($algo);
10 $orig = hash_init($algo);
18 foreach ($algos as $algo) {
19 var_dump($algo);
20 $orig = hash_init($algo);
H A Dhash_file_basic.phpt7 /* Prototype : string hash_file(string algo, string filename[, bool raw_output = false])
H A Dhash_error.phpt6 /* Prototype : string hash ( string $algo , string $data [, bool $raw_output ] )
H A Dhash_pbkdf2_basic.phpt6 /* Prototype : string hash_hmac(string $algo, string $data, string $key [, int $length = 0 [, bool…
/PHP-7.4/ext/hash/
H A Dbench.php79 foreach (hash_algos() as $algo) {
82 hash($algo, $data);
84 $time[$algo] += microtime(true)-$start;
H A Dhash.c119 char *algo, *data; in php_hash_do_hash() local
240 char *algo, *data, *key; in php_hash_do_hash_hmac() local
359 ops = php_hash_fetch_ops(ZSTR_VAL(algo), ZSTR_LEN(algo)); in PHP_FUNCTION()
638 ops = php_hash_fetch_ops(ZSTR_VAL(algo), ZSTR_LEN(algo)); in PHP_FUNCTION()
1331 ZEND_ARG_INFO(0, algo)
1337 ZEND_ARG_INFO(0, algo)
1343 ZEND_ARG_INFO(0, algo)
1350 ZEND_ARG_INFO(0, algo)
1357 ZEND_ARG_INFO(0, algo)
1392 ZEND_ARG_INFO(0, algo)
[all …]
H A Dphp_hash.h147 PHP_HASH_API const php_hash_ops *php_hash_fetch_ops(const char *algo, size_t algo_len);
148 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops);
H A Dconfig.m419 AC_DEFINE(HAVE_SLOW_HASH3, 1, [Define is hash3 algo is available])
/PHP-7.4/ext/standard/
H A Dpassword.c623 const php_password_algo *algo; in php_password_algo_identify_ex() local
630 algo = php_password_algo_find(ident); in php_password_algo_identify_ex()
632 return (!algo || (algo->valid && !algo->valid(hash))) ? default_algo : algo; in php_password_algo_identify_ex()
639 const php_password_algo *algo; in PHP_FUNCTION() local
652 if (!algo || (algo->valid && !algo->valid(hash))) { in PHP_FUNCTION()
666 if (algo->get_info && in PHP_FUNCTION()
713 const php_password_algo *algo; in PHP_FUNCTION() local
721 RETURN_BOOL(algo && (!algo->verify || algo->verify(password, hash))); in PHP_FUNCTION()
731 const php_password_algo *algo; in PHP_FUNCTION() local
742 if (!algo) { in PHP_FUNCTION()
[all …]
/PHP-7.4/ext/standard/tests/password/
H A Dpassword_get_info.phpt19 ["algo"]=>
30 ["algo"]=>
41 ["algo"]=>
50 ["algo"]=>
H A Dpassword_hash_argon2.phpt20 foreach ($algos as $algo) {
21 $hash = password_hash($password, $algo);
23 var_dump(password_get_info($hash)['algo']);
H A Dpassword_hash.phpt15 foreach ($algos as $algo) {
16 $hash = password_hash("foo", $algo);
H A Dpassword_get_info_argon2.phpt17 ["algo"]=>
32 ["algo"]=>
/PHP-7.4/ext/sodium/tests/
H A Dphp_password_verify.phpt11 list(, $algo) = explode('$', $hash, 3);
13 if (!in_array($algo, password_algos(), true /* strict */)) {
14 echo "skip - No $algo support in password_verify()";
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_spki_new_basic.phpt20 $algo = array(
35 foreach ($algo as $value) {
H A Dopenssl_spki_export_basic.phpt21 $algo = array(
36 foreach ($algo as $value) {
H A Dopenssl_spki_verify_basic.phpt22 $algo = array(
35 foreach ($algo as $value) {
H A DCertificateGenerator.inc150 public function getCertDigest($algo)
152 return openssl_x509_fingerprint($this->lastCert, $algo);
H A Dopenssl_spki_export_challenge_basic.phpt23 $algo = array(
38 foreach ($algo as $value) {
H A Dbug68920.phpt78 Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form require…
87 Warning: stream_socket_client(): Invalid peer_fingerprint array; [algo => fingerprint] form require…
/PHP-7.4/ext/standard/tests/array/
H A Dusort_variation11.phpt19 die("Whatever sorting algo you used, this test should never be broken");

Completed in 36 milliseconds

12