/PHP-7.4/ext/hash/tests/ |
H A D | bug64745.phpt | 5 $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0); 8 var_dump($hash);
|
H A D | bug70312.phpt | 5 var_dump(hash('haval128,5', '1234567890123456789012345678901234567890123456789012345678901234')); 6 var_dump(hash('haval160,5', '1234567890123456789012345678901234567890123456789012345678901234')); 7 var_dump(hash('haval192,5', '1234567890123456789012345678901234567890123456789012345678901234')); 8 var_dump(hash('haval224,5', '1234567890123456789012345678901234567890123456789012345678901234')); 9 var_dump(hash('haval256,5', '1234567890123456789012345678901234567890123456789012345678901234'));
|
H A D | bug73127.phpt | 2 Bug #73127 (gost-crypto hash incorrect if input data contains long 0xFF sequence) 8 echo hash('gost-crypto', $test1), 10 hash('gost', $test1), 12 hash('gost-crypto', $test2), 14 hash('gost', $test2), 16 hash('gost-crypto', ''), 18 hash('gost', '')
|
H A D | crc32.phpt | 6 echo hash('crc32', ''), "\n"; 7 echo hash('crc32', 'a'), "\n"; 8 echo hash('crc32', 'abc'), "\n"; 15 echo hash('crc32b', ''), "\n"; 16 echo hash('crc32b', 'a'), "\n"; 17 echo hash('crc32b', 'abc'), "\n"; 24 echo hash('crc32c', ''), "\n"; 25 echo hash('crc32c', 'a'), "\n"; 26 echo hash('crc32c', 'ab'), "\n"; 27 echo hash('crc32c', 'abc'), "\n"; [all …]
|
H A D | fnv132.phpt | 187 $result = hash('fnv132', $test[0]);
|
H A D | fnv164.phpt | 187 $result = hash('fnv164', $test[0]);
|
H A D | fnv1a32.phpt | 312 $result = hash('fnv1a32', $test[0]);
|
H A D | fnv1a64.phpt | 312 $result = hash('fnv1a64', $test[0]);
|
H A D | gost.phpt | 5 echo hash('gost', ''), "\n"; 6 echo hash('gost', 'The quick brown fox jumps over the lazy dog'), "\n"; 7 echo hash('gost', 'The quick brown fox jumps over the lazy cog'), "\n"; 8 echo hash('gost', str_repeat('a', 31)), "\n"; 9 echo hash('gost', str_repeat('a', 32)), "\n"; 10 echo hash('gost', str_repeat('a', 33)), "\n"; 12 echo hash('gost-crypto', ''), "\n"; 13 echo hash('gost-crypto', 'The quick brown fox jumps over the lazy dog'), "\n"; 15 echo hash('gost-crypto', str_repeat('a', 31)), "\n"; 16 echo hash('gost-crypto', str_repeat('a', 32)), "\n"; [all …]
|
H A D | hash_algos.phpt | 8 * Source code: ext/hash/hash.c
|
H A D | hash_error.phpt | 2 Hash: hash() function : error conditions 7 * Description: Generate a hash value (message digest) 8 * Source code: ext/hash/hash.c 11 echo "*** Testing hash() : error conditions ***\n"; 14 var_dump(hash()); 15 var_dump(hash('adler32')); 19 var_dump(hash('adler32', '', false, $extra_arg)); 21 echo "\n-- Testing hash() function with invalid hash algorithm --\n"; 22 var_dump(hash('foo', '')); 27 *** Testing hash() : error conditions *** [all …]
|
H A D | hash_file_basic.phpt | 8 * Description: Generate a hash of a given file 9 * Source code: ext/hash/hash.c
|
H A D | hash_file_basic1.phpt | 7 * Description: Generate a hash value using the contents of a given file 8 * Source code: ext/hash/hash.c
|
H A D | hash_file_error.phpt | 8 * Description: Generate a hash of a given file 9 * Source code: ext/hash/hash.c
|
H A D | hash_hkdf_basic.phpt | 8 * Source code: ext/hash/hash.c
|
H A D | hash_hkdf_edges.phpt | 8 * Source code: ext/hash/hash.c
|
H A D | hash_hkdf_error.phpt | 8 * Source code: ext/hash/hash.c 22 echo "\n-- Testing hash_hkdf() function with invalid hash algorithm --\n"; 25 echo "\n-- Testing hash_hkdf() function with non-cryptographic hash algorithm --\n"; 38 var_dump(hash_hkdf('sha1', $ikm, 20 * 255 + 1)); // Length can't be more than 255 times the hash di… 57 -- Testing hash_hkdf() function with invalid hash algorithm -- 62 -- Testing hash_hkdf() function with non-cryptographic hash algorithm --
|
H A D | hash_hkdf_rfc5869.phpt | 8 * Source code: ext/hash/hash.c
|
H A D | hash_hmac_basic.phpt | 7 * Description: Generate a keyed hash value using the HMAC method 8 * Source code: ext/hash/hash.c
|
H A D | hash_hmac_error.phpt | 7 * Function is implemented in ext/hash/hash.c 24 echo "\n-- Testing hash_hmac() function with invalid hash algorithm --\n"; 27 echo "\n-- Testing hash_hmac() function with non-cryptographic hash algorithm --\n"; 51 -- Testing hash_hmac() function with invalid hash algorithm -- 56 -- Testing hash_hmac() function with non-cryptographic hash algorithm --
|
H A D | hash_hmac_file_basic.phpt | 8 * Description: Generate a keyed hash value using the HMAC method and the contents of a given file 9 * Source code: ext/hash/hash.c
|
H A D | hash_hmac_file_error.phpt | 7 * Description: Generate a keyed hash value using the HMAC method and the contents of a given file 8 * Source code: ext/hash/hash.c 12 echo "*** Testing hash() : error conditions ***\n"; 26 echo "\n-- Testing hash_hmac_file() function with invalid hash algorithm --\n"; 29 echo "\n-- Testing hash_hmac_file() function with non-cryptographic hash algorithm --\n"; 38 *** Testing hash() : error conditions *** 55 -- Testing hash_hmac_file() function with invalid hash algorithm -- 59 -- Testing hash_hmac_file() function with non-cryptographic hash algorithm --
|
H A D | hash_pbkdf2_basic.phpt | 7 * Description: Generate a keyed hash value using the HMAC method 8 * Source code: ext/hash/hash.c
|
H A D | hash_pbkdf2_error.phpt | 7 Generate a PBKDF2 hash of the given password and salt 24 echo "\n-- Testing hash_pbkdf2() function with invalid hash algorithm --\n"; 27 echo "\n-- Testing hash_pbkdf2() function with non-cryptographic hash algorithm --\n"; 61 -- Testing hash_pbkdf2() function with invalid hash algorithm -- 66 -- Testing hash_pbkdf2() function with non-cryptographic hash algorithm --
|
H A D | haval.phpt | 9 echo $algo . ': ' . hash($algo,'') . "\n"; 16 echo $algo . ': ' . hash($algo,'abc') . "\n"; 23 …echo $algo . ': ' . hash($algo,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ0123456789abcde…
|