/PHP-8.0/ext/hash/ |
H A D | hash.stub.php | 5 function hash(string $algo, string $data, bool $binary = false): string {} argument 7 function hash_file(string $algo, string $filename, bool $binary = false): string|false {} argument 9 function hash_hmac(string $algo, string $data, string $key, bool $binary = false): string {} argument 11 function hash_hmac_file(string $algo, string $filename, string $key, bool $binary = false): string|… argument 13 function hash_init(string $algo, int $flags = 0, string $key = ""): HashContext {} argument 31 function hash_pbkdf2(string $algo, string $password, string $salt, int $iterations, int $length = 0… argument 35 function hash_hkdf(string $algo, string $key, int $length = 0, string $info = "", string $salt = ""… argument 38 function mhash_get_block_size(int $algo): int|false {} argument 40 function mhash_get_hash_name(int $algo): string|false {} argument 42 function mhash_keygen_s2k(int $algo, string $password, string $salt, int $length): string|false {} argument [all …]
|
H A D | bench.php | 77 foreach (hash_algos() as $algo) { 78 $time[$algo] = 0; 82 foreach (hash_algos() as $algo) { 85 hash($algo, $data); 87 $time[$algo] += microtime(true)-$start;
|
H A D | hash_arginfo.h | 5 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 11 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 17 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 24 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 31 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 68 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 82 ZEND_ARG_TYPE_INFO(0, algo, IS_STRING, 0) 91 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0) 97 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0) 103 ZEND_ARG_TYPE_INFO(0, algo, IS_LONG, 0) [all …]
|
H A D | hash.c | 110 size_t algo_len = strlen(algo); in php_hash_register_algo() 359 ops = php_hash_fetch_ops(algo); in php_hash_do_hash() 417 zend_string *algo; in PHP_FUNCTION() local 423 Z_PARAM_STR(algo) in PHP_FUNCTION() 437 zend_string *algo; in PHP_FUNCTION() local 443 Z_PARAM_STR(algo) in PHP_FUNCTION() 570 zend_string *algo; in PHP_FUNCTION() local 587 zend_string *algo; in PHP_FUNCTION() local 1196 zend_string *algo = NULL; in PHP_FUNCTION() local 1218 if (algo) { in PHP_FUNCTION() [all …]
|
H A D | php_hash.h | 42 const char *algo; member 141 PHP_HASH_API const php_hash_ops *php_hash_fetch_ops(zend_string *algo); 142 PHP_HASH_API void php_hash_register_algo(const char *algo, const php_hash_ops *ops);
|
/PHP-8.0/ext/hash/tests/ |
H A D | haval.phpt | 8 $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 D | mhash_004.phpt | 8 $algo = MHASH_MD5; 9 var_dump($algo); 10 var_dump(bin2hex(mhash($algo, "test"))); 11 var_dump($algo);
|
H A D | hash_hkdf_error.phpt | 51 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm 54 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm 55 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm 56 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm 57 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm 58 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm 59 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm 60 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm 61 [ValueError] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
|
H A D | hash_serialize_003.phpt | 230 function test_serialization($serial, $hash, $algo) { 236 echo "$algo: unexpected hash $hash2 for serialization {$serial}\n"; 239 echo "$algo: problem with serialization {$serial}\n"; 245 $algo = $slist[0]; 246 $hash = hash($algo, "I can't remember anythingCan’t tell if this is true or dream"); 248 $ctx = hash_init($algo); 252 echo "$algo: unexpected serialization $serial\n"; 255 test_serialization($serial, $hash, $algo);
|
H A D | hash_hkdf_edges.phpt | 13 echo "Non-crypto algo name case-sensitivity:\n"; 28 Non-crypto algo name case-sensitivity: 29 [Error] hash_hkdf(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
|
H A D | hash_hmac_error.phpt | 35 hash_hmac(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm 38 hash_hmac(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
|
H A D | hash_hmac_file_error.phpt | 40 hash_hmac_file(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm 43 hash_hmac_file(): Argument #1 ($algo) must be a valid cryptographic hashing algorithm
|
H A D | hash_serialize_001.phpt | 8 foreach ($algos as $algo) { 9 var_dump($algo); 10 $ctx0 = hash_init($algo); 25 foreach ($algos as $algo) { 26 var_dump($algo); 27 $orig = hash_init($algo); 31 $fresh = hash_init($algo);
|
H A D | hash_init_error.phpt | 44 hash_init(): Argument #1 ($algo) must be a valid hashing algorithm 47 hash_init(): Argument #1 ($algo) must be a cryptographic hashing algorithm if HMAC is requested
|
H A D | hash-clone.phpt | 8 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 D | hash_copy_001.phpt | 8 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);
|
/PHP-8.0/sapi/fuzzer/ |
H A D | generate_unserializehash_corpus.php | 6 foreach (hash_algos() as $algo) { 7 $ctx = hash_init($algo); 8 $algx = preg_replace('/[^-_a-zA-Z0-9]/', '_', $algo);
|
/PHP-8.0/ext/standard/ |
H A D | password.c | 541 const php_password_algo *algo; in php_password_algo_identify_ex() local 550 return (!algo || (algo->valid && !algo->valid(hash))) ? default_algo : algo; in php_password_algo_identify_ex() 556 const php_password_algo *algo; in PHP_FUNCTION() local 569 if (!algo || (algo->valid && !algo->valid(hash))) { in PHP_FUNCTION() 583 if (algo->get_info) { in PHP_FUNCTION() 584 algo->get_info(&options, hash); in PHP_FUNCTION() 627 const php_password_algo *algo; in PHP_FUNCTION() local 635 RETURN_BOOL(algo && (!algo->verify || algo->verify(password, hash))); in PHP_FUNCTION() 646 const php_password_algo *algo; in PHP_FUNCTION() local 657 if (!algo) { in PHP_FUNCTION() [all …]
|
/PHP-8.0/ext/standard/tests/password/ |
H A D | password_get_info.phpt | 19 ["algo"]=> 30 ["algo"]=> 41 ["algo"]=> 50 ["algo"]=>
|
H A D | password_hash_argon2.phpt | 20 foreach ($algos as $algo) { 21 $hash = password_hash($password, $algo); 23 var_dump(password_get_info($hash)['algo']);
|
H A D | password_hash.phpt | 15 foreach ($algos as $algo) { 16 $hash = password_hash("foo", $algo);
|
H A D | password_get_info_argon2.phpt | 17 ["algo"]=> 32 ["algo"]=>
|
/PHP-8.0/ext/sodium/tests/ |
H A D | php_password_verify.phpt | 11 list(, $algo) = explode('$', $hash, 3); 13 if (!in_array($algo, password_algos(), true /* strict */)) { 14 echo "skip - No $algo support in password_verify()";
|
/PHP-8.0/ext/openssl/tests/ |
H A D | openssl_spki_new_basic.phpt | 20 $algo = array( 35 foreach ($algo as $value) {
|
H A D | openssl_spki_export_basic.phpt | 21 $algo = array( 36 foreach ($algo as $value) {
|