SHA1 testcases
| From: | Derick Rethans | Date: | Thu, 20 Feb 2003 07:00:14 +0000 |
| Subject: | SHA1 testcases | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-94383@lists.php.net to get a copy of this message | ||
Hey Stefan,
I added test cases for the SHA1() function (the testvectors from the
RFC) but it seems to fail:
/dat/dev/php/php-5.0.0dev/ext/standard/tests/strings/sha1.phpt
================================================================================
---- EXPECTED OUTPUT
a9993e364706816aba3e25717850c26c9cd0d89d
84983e441c3bd26ebaae4aa1f95129e5e54670f1
34aa973cd4c4daa4f61eeb2bdbad27316534016f
dea356a2cddd90c7a7ecedc5ebb563934f460452
---- ACTUAL OUTPUT
a9993e364706816aba3e25717850c26c9cd0d89d
84983e441c3bd26ebaae4aa1f95129e5e54670f1
86f7e437faa5a7fce15d1ddcb9eaeaea377667b8
e0c094e867ef46c350ef54a7f59dd60bed92ae83
---- FAILED
any idea why this might fail?
regards,
Derick
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
JDI Media Solutions http://www.jdimedia.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------