xref: /PHP-5.5/ext/hash/tests/ripemd128.phpt (revision 950de078)
1--TEST--
2ripemd128 algorithm
3--SKIPIF--
4<?php if(!extension_loaded("hash")) print "skip"; ?>
5--FILE--
6<?php
7echo hash('ripemd128', '') . "\n";
8echo hash('ripemd128', 'a') . "\n";
9echo hash('ripemd128', 'abc') . "\n";
10echo hash('ripemd128', 'message digest') . "\n";
11echo hash('ripemd128', 'abcdefghijklmnopqrstuvwxyz') . "\n";
12echo hash('ripemd128', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n";
13echo hash('ripemd128', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
14echo hash('ripemd128', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
15echo hash('ripemd128', str_repeat('a', 1000000)) . "\n";
16--EXPECT--
17cdf26213a150dc3ecb610f18f6b38b46
1886be7afa339d0fc7cfc785e72f578d33
19c14a12199c66e4ba84636b0f69144c77
209e327b3d6e523062afc1132d7df9d1b8
21fd2aa607f71dc8f510714922b371834e
22a1aa0689d0fafa2ddc22e88b49133a06
23d1e959eb179c911faea4624c60c5c702
243f45ef194732c2dbb2c4a2c769795fa3
254a7f5723f954eba1216c9d8f6320431f
26