xref: /PHP-5.6/ext/hash/tests/ripemd160.phpt (revision 950de078)
1--TEST--
2ripemd160 algorithm
3--SKIPIF--
4<?php if(!extension_loaded("hash")) print "skip"; ?>
5--FILE--
6<?php
7echo hash('ripemd160', '') . "\n";
8echo hash('ripemd160', 'a') . "\n";
9echo hash('ripemd160', 'abc') . "\n";
10echo hash('ripemd160', 'message digest') . "\n";
11echo hash('ripemd160', 'abcdefghijklmnopqrstuvwxyz') . "\n";
12echo hash('ripemd160', 'abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq') . "\n";
13echo hash('ripemd160', 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789') . "\n";
14echo hash('ripemd160', '12345678901234567890123456789012345678901234567890123456789012345678901234567890') . "\n";
15echo hash('ripemd160', str_repeat('a', 1000000)) . "\n";
16--EXPECT--
179c1185a5c5e9fc54612808977ee8f548b2258d31
180bdc9d2d256b3ee9daae347be6f4dc835a467ffe
198eb208f7e05d987a9b044a8e98c6b087f15a0bfc
205d0689ef49d2fae572b881b123a85ffa21595f36
21f71c27109c692c1b56bbdceb5b9d2865b3708dbc
2212a053384a9c0c88e405a06c27dcf49ada62eb2b
23b0e20b6e3116640286ed3a87a5713079b21f5189
249b752e45573d4b39f4dbd3323cab82bf63326bfb
2552783243c1697bdbe16d37f97f68f08325dc1528
26