xref: /PHP-5.3/ext/hash/tests/snefru.phpt (revision 950de078)
1--TEST--
2snefru
3--SKIPIF--
4<?php extension_loaded('hash') or die('skip'); ?>
5--FILE--
6<?php
7echo hash('snefru', ''), "\n";
8echo hash('snefru', 'The quick brown fox jumps over the lazy dog'), "\n";
9echo hash('snefru', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'), "\n";
10echo hash('snefru', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'), "\n";
11echo hash('snefru', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'), "\n";
12?>
13--EXPECT--
148617f366566a011837f4fb4ba5bedea2b892f3ed8b894023d16ae344b2be5881
15674caa75f9d8fd2089856b95e93a4fb42fa6c8702f8980e11d97a142d76cb358
1694682bc46e5fbb8417e2f3e10ed360484048d946bb8cbb0ea4cad2700dbeaab0
17c54c602ac46383716ee7200a76c9c90a7b435bbe31d13f04e0b00a7ea5c347fa
187a8539c59e192e8d70b1ab82aa86a1b54560d42020bda4e00ddd6d048fe3bcaa
19