xref: /php-src/ext/hash/tests/ripemd128.phpt (revision 7aacc705)
1--TEST--
2Hash: ripemd128 algorithm
3--FILE--
4<?php
5echo hash('ripemd128', '') . "\n";
6echo hash('ripemd128', 'a') . "\n";
7echo hash('ripemd128', 'abc') . "\n";
8echo hash('ripemd128', 'message digest') . "\n";
9echo hash('ripemd128', 'abcdefghijklmnopqrstuvwxyz') . "\n";
10echo hash('ripemd128', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n";
11echo hash('ripemd128', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
12echo hash('ripemd128', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
13echo hash('ripemd128', str_repeat('a', 1000000)) . "\n";
14?>
15--EXPECT--
16cdf26213a150dc3ecb610f18f6b38b46
1786be7afa339d0fc7cfc785e72f578d33
18c14a12199c66e4ba84636b0f69144c77
199e327b3d6e523062afc1132d7df9d1b8
20fd2aa607f71dc8f510714922b371834e
21a1aa0689d0fafa2ddc22e88b49133a06
22d1e959eb179c911faea4624c60c5c702
233f45ef194732c2dbb2c4a2c769795fa3
244a7f5723f954eba1216c9d8f6320431f
25