Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
hash /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
adler32.phpt
535
B
-rw-rw-r--
2022-10-31 11:36
bug52240.phpt
435
B
-rw-rw-r--
2022-10-31 11:36
bug64745.phpt
396
B
-rw-rw-r--
2022-10-31 11:36
bug70312.phpt
894
B
-rw-rw-r--
2022-10-31 11:36
bug73127.phpt
812
B
-rw-rw-r--
2022-10-31 11:36
crc32.phpt
4.73
KB
-rw-rw-r--
2022-10-31 11:36
fnv132.phpt
8.14
KB
-rw-rw-r--
2022-10-31 11:36
fnv164.phpt
9.44
KB
-rw-rw-r--
2022-10-31 11:36
fnv1a32.phpt
17.1
KB
-rw-rw-r--
2022-10-31 11:36
fnv1a64.phpt
19.46
KB
-rw-rw-r--
2022-10-31 11:36
gost.phpt
1.47
KB
-rw-rw-r--
2022-10-31 11:36
hash-clone.phpt
15.82
KB
-rw-rw-r--
2022-10-31 11:36
hash_algos.phpt
2.1
KB
-rw-rw-r--
2022-10-31 11:36
hash_copy_001.phpt
15.83
KB
-rw-rw-r--
2022-10-31 11:36
hash_equals.phpt
1.21
KB
-rw-rw-r--
2022-10-31 11:36
hash_error.phpt
1.26
KB
-rw-rw-r--
2022-10-31 11:36
hash_file_basic.phpt
1.28
KB
-rw-rw-r--
2022-10-31 11:36
hash_file_basic1.phpt
3.31
KB
-rw-rw-r--
2022-10-31 11:36
hash_file_error.phpt
1.84
KB
-rw-rw-r--
2022-10-31 11:36
hash_hkdf_basic.phpt
5.07
KB
-rw-rw-r--
2022-10-31 11:36
hash_hkdf_edges.phpt
1
KB
-rw-rw-r--
2022-10-31 11:36
hash_hkdf_error.phpt
3.15
KB
-rw-rw-r--
2022-10-31 11:36
hash_hkdf_rfc5869.phpt
4.69
KB
-rw-rw-r--
2022-10-31 11:36
hash_hmac_algos.phpt
1.05
KB
-rw-rw-r--
2022-10-31 11:36
hash_hmac_basic.phpt
2.93
KB
-rw-rw-r--
2022-10-31 11:36
hash_hmac_error.phpt
1.82
KB
-rw-rw-r--
2022-10-31 11:36
hash_hmac_file_basic.phpt
3.74
KB
-rw-rw-r--
2022-10-31 11:36
hash_hmac_file_error.phpt
2.15
KB
-rw-rw-r--
2022-10-31 11:36
hash_init_error.phpt
1.33
KB
-rw-rw-r--
2022-10-31 11:36
hash_pbkdf2_basic.phpt
2.04
KB
-rw-rw-r--
2022-10-31 11:36
hash_pbkdf2_error.phpt
2.72
KB
-rw-rw-r--
2022-10-31 11:36
hash_update_file.phpt
515
B
-rw-rw-r--
2022-10-31 11:36
hash_update_stream.phpt
350
B
-rw-rw-r--
2022-10-31 11:36
haval.phpt
3.89
KB
-rw-rw-r--
2022-10-31 11:36
hmac-md5.phpt
523
B
-rw-rw-r--
2022-10-31 11:36
joaat.phpt
510
B
-rw-rw-r--
2022-10-31 11:36
md2.phpt
675
B
-rw-rw-r--
2022-10-31 11:36
md4.phpt
698
B
-rw-rw-r--
2022-10-31 11:36
md5.phpt
386
B
-rw-rw-r--
2022-10-31 11:36
mhash_001.phpt
1.39
KB
-rw-rw-r--
2022-10-31 11:36
mhash_002.phpt
1.15
KB
-rw-rw-r--
2022-10-31 11:36
mhash_003.phpt
3.17
KB
-rw-rw-r--
2022-10-31 11:36
mhash_004.phpt
346
B
-rw-rw-r--
2022-10-31 11:36
new-context.phpt
253
B
-rw-rw-r--
2022-10-31 11:36
reuse.phpt
270
B
-rw-rw-r--
2022-10-31 11:36
ripemd128.phpt
937
B
-rw-rw-r--
2022-10-31 11:36
ripemd160.phpt
1009
B
-rw-rw-r--
2022-10-31 11:36
ripemd256.phpt
1.2
KB
-rw-rw-r--
2022-10-31 11:36
ripemd320.phpt
1.34
KB
-rw-rw-r--
2022-10-31 11:36
serialize-context.phpt
246
B
-rw-rw-r--
2022-10-31 11:36
sha1.phpt
648
B
-rw-rw-r--
2022-10-31 11:36
sha224.phpt
758
B
-rw-rw-r--
2022-10-31 11:36
sha256.phpt
806
B
-rw-rw-r--
2022-10-31 11:36
sha3.phpt
3.67
KB
-rw-rw-r--
2022-10-31 11:36
sha384.phpt
1.03
KB
-rw-rw-r--
2022-10-31 11:36
sha512-224.phpt
456
B
-rw-rw-r--
2022-10-31 11:36
sha512-256.phpt
480
B
-rw-rw-r--
2022-10-31 11:36
sha512.phpt
1.22
KB
-rw-rw-r--
2022-10-31 11:36
snefru.phpt
773
B
-rw-rw-r--
2022-10-31 11:36
tiger.phpt
533
B
-rw-rw-r--
2022-10-31 11:36
whirlpool.phpt
642
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Hash: hash_hkdf() function: RFC 5869 test vectors --FILE-- <?php /* Prototype : string hkdf ( string $algo , string $ikm [, int $length , string $info = '' , string $salt = '' ] ) * Description: HMAC-based Key Derivation Function * Source code: ext/hash/hash.c */ echo "*** Testing hash_hkdf(): RFC 5869 test vectors ***\n"; echo "Test case 1 (SHA-256): ", bin2hex(hash_hkdf( 'sha256', "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", 42, "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9", "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c" )), "\n"; echo "Test case 2 (SHA-256 with longer inputs/outputs): ", bin2hex(hash_hkdf( 'sha256', "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f", 82, "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", "\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf" )), "\n"; echo "Test case 3 (SHA-256 with zero-length salt, info): ", bin2hex(hash_hkdf( 'sha256', "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", 42, '', '' )), "\n"; echo "Test case 4 (SHA-1): ", bin2hex(hash_hkdf( 'sha1', "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", 42, "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9", "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c" )), "\n"; echo "Test case 5 (SHA-1 with longer inputs/outputs): ", bin2hex(hash_hkdf( 'sha1', "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20\x21\x22\x23\x24\x25\x26\x27\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30\x31\x32\x33\x34\x35\x36\x37\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40\x41\x42\x43\x44\x45\x46\x47\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f", 82, "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8\xe9\xea\xeb\xec\xed\xee\xef\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", "\x60\x61\x62\x63\x64\x65\x66\x67\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70\x71\x72\x73\x74\x75\x76\x77\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8\xa9\xaa\xab\xac\xad\xae\xaf" )), "\n"; echo "Test case 6 (SHA-1 with zero-length salt, info): ", bin2hex(hash_hkdf( 'sha1', "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", 42, '', '' )), "\n"; echo "Test case 7 (SHA-1 with zero-length info, salt not provided): ", bin2hex(hash_hkdf( 'sha1', "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", 42, '' )), "\n"; ?> ===Done=== --EXPECT-- *** Testing hash_hkdf(): RFC 5869 test vectors *** Test case 1 (SHA-256): 3cb25f25faacd57a90434f64d0362f2a2d2d0a90cf1a5a4c5db02d56ecc4c5bf34007208d5b887185865 Test case 2 (SHA-256 with longer inputs/outputs): b11e398dc80327a1c8e7f78c596a49344f012eda2d4efad8a050cc4c19afa97c59045a99cac7827271cb41c65e590e09da3275600c2f09b8367793a9aca3db71cc30c58179ec3e87c14c01d5c1f3434f1d87 Test case 3 (SHA-256 with zero-length salt, info): 8da4e775a563c18f715f802a063c5a31b8a11f5c5ee1879ec3454e5f3c738d2d9d201395faa4b61a96c8 Test case 4 (SHA-1): 085a01ea1b10f36933068b56efa5ad81a4f14b822f5b091568a9cdd4f155fda2c22e422478d305f3f896 Test case 5 (SHA-1 with longer inputs/outputs): 0bd770a74d1160f7c9f12cd5912a06ebff6adcae899d92191fe4305673ba2ffe8fa3f1a4e5ad79f3f334b3b202b2173c486ea37ce3d397ed034c7f9dfeb15c5e927336d0441f4c4300e2cff0d0900b52d3b4 Test case 6 (SHA-1 with zero-length salt, info): 0ac1af7002b3d761d1e55298da9d0506b9ae52057220a306e07b6b87e8df21d0ea00033de03984d34918 Test case 7 (SHA-1 with zero-length info, salt not provided): 2c91117204d745f3500d636a62f64f0ab3bae548aa53d423b0d1f27ebba6f5e5673a081d70cce7acfc48 ===Done===