Home
last modified time | relevance | path

Searched refs:hash (Results 26 – 50 of 163) sorted by path

1234567

/PHP-7.4/ext/hash/tests/
H A Dbug64745.phpt5 $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0);
8 var_dump($hash);
H A Dbug70312.phpt5 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 Dbug73127.phpt2 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 Dcrc32.phpt6 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 Dfnv132.phpt187 $result = hash('fnv132', $test[0]);
H A Dfnv164.phpt187 $result = hash('fnv164', $test[0]);
H A Dfnv1a32.phpt312 $result = hash('fnv1a32', $test[0]);
H A Dfnv1a64.phpt312 $result = hash('fnv1a64', $test[0]);
H A Dgost.phpt5 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 Dhash_algos.phpt8 * Source code: ext/hash/hash.c
H A Dhash_error.phpt2 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 Dhash_file_basic.phpt8 * Description: Generate a hash of a given file
9 * Source code: ext/hash/hash.c
H A Dhash_file_basic1.phpt7 * Description: Generate a hash value using the contents of a given file
8 * Source code: ext/hash/hash.c
H A Dhash_file_error.phpt8 * Description: Generate a hash of a given file
9 * Source code: ext/hash/hash.c
H A Dhash_hkdf_basic.phpt8 * Source code: ext/hash/hash.c
H A Dhash_hkdf_edges.phpt8 * Source code: ext/hash/hash.c
H A Dhash_hkdf_error.phpt8 * 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 Dhash_hkdf_rfc5869.phpt8 * Source code: ext/hash/hash.c
H A Dhash_hmac_basic.phpt7 * Description: Generate a keyed hash value using the HMAC method
8 * Source code: ext/hash/hash.c
H A Dhash_hmac_error.phpt7 * 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 Dhash_hmac_file_basic.phpt8 * 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 Dhash_hmac_file_error.phpt7 * 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 Dhash_pbkdf2_basic.phpt7 * Description: Generate a keyed hash value using the HMAC method
8 * Source code: ext/hash/hash.c
H A Dhash_pbkdf2_error.phpt7 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 Dhaval.phpt9 echo $algo . ': ' . hash($algo,'') . "\n";
16 echo $algo . ': ' . hash($algo,'abc') . "\n";
23 …echo $algo . ': ' . hash($algo,'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMOPQRSTUVWXYZ0123456789abcde…

Completed in 38 milliseconds

1234567