xref: /PHP-8.4/ext/hash/tests/md4.phpt (revision 7aacc705)
1--TEST--
2Hash: md4 algorithm
3--FILE--
4<?php
5/* RFC 1320 vectors */
6echo hash('md4', '') . "\n";
7echo hash('md4', 'a') . "\n";
8echo hash('md4', 'abc') . "\n";
9echo hash('md4', 'message digest') . "\n";
10echo hash('md4', 'abcdefghijklmnopqrstuvwxyz') . "\n";
11echo hash('md4', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
12echo hash('md4', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
13?>
14--EXPECT--
1531d6cfe0d16ae931b73c59d7e0c089c0
16bde52cb31de33e46245e05fbdbd6fb24
17a448017aaf21d8525fc10ae87aa6729d
18d9130a8164549fe818874806e1c7014b
19d79e1c308aa5bbcdeea8ed63df412da9
20043f8582f241db351ce627e153e7f0e4
21e33b4ddc9c38f2199c3e7b164fcc0536
22