xref: /PHP-8.3/ext/hash/tests/snefru.phpt (revision f73c0102)
1--TEST--
2Hash: snefru algorithm
3--FILE--
4<?php
5echo hash('snefru', ''), "\n";
6echo hash('snefru', 'The quick brown fox jumps over the lazy dog'), "\n";
7echo hash('snefru', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'), "\n";
8echo hash('snefru', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'), "\n";
9echo hash('snefru', 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'), "\n";
10?>
11--EXPECT--
128617f366566a011837f4fb4ba5bedea2b892f3ed8b894023d16ae344b2be5881
13674caa75f9d8fd2089856b95e93a4fb42fa6c8702f8980e11d97a142d76cb358
1494682bc46e5fbb8417e2f3e10ed360484048d946bb8cbb0ea4cad2700dbeaab0
15c54c602ac46383716ee7200a76c9c90a7b435bbe31d13f04e0b00a7ea5c347fa
167a8539c59e192e8d70b1ab82aa86a1b54560d42020bda4e00ddd6d048fe3bcaa
17