Digest::SHA256 produces the wrong digest

Daniel Roethlisberger daniel at roe.ch
Thu Jan 5 10:51:18 PST 2006


Ben Laurie <ben at algroup.co.uk> 2006-01-05:
> $ apps/openssl dgst -sha256
> test9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
> 
> $ perl -e "use Digest::SHA256; print
> Digest::SHA256::new(256)->hexhash('test');"
> d0933eee ad930c56 5827f6aa 5887f852 2140f90d cf9fa07e 40fd7abf 27992307
> 
> This is using version 0.01b of p5-Digest-SHA256.

FWIW, I've quickly tested Digest::SHA256 in the following
configurations:

6.0, GCC 3.4.4, perl 5.8.7: broken
5.4, GCC 3.4.2, perl 5.8.7: broken
5.4, GCC 3.2.3, perl 5.8.7: broken
4.11, GCC 2.95.4, perl 5.00503: ok
4.11, GCC 3.2.3, perl 5.00503: ok

Cheers,
Dan

-- 
Daniel Roethlisberger <daniel at roe.ch>
GnuPG (PGP) key id 0x39740E98804A06B1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060105/55e8f985/attachment.bin


More information about the freebsd-ports mailing list