Subject: | Differences in output from sha3_512_base64 between 0.22 and 0.24 |
Date: | Wed, 16 Dec 2015 08:15:41 +1100 |
To: | bug-Digest-SHA3 [...] rt.cpan.org |
From: | Fletch <daath101 [...] gmail.com> |
I've noticed that the sha3_512_base64 function is producing different
output, between different versions of the module.
On CentOS 7, perl-Digest-SHA3-0.24-1.el7.x86_64 (epel)
$ perl -e 'use Digest::SHA3; print
Digest::SHA3::sha3_512_base64("asd")."\n";'
nmHxyCEMEg/NQTQ/0uuHNPyVPe4E7TGDDacBc82z5WG+e7ATiqzV0nejz+bLcZTxzrdSiwMn9Il51JkK0qy05Q
On Debian 8, libdigest-sha3-perl 0.22-2 amd64
$ perl -e 'use Digest::SHA3; print
Digest::SHA3::sha3_512_base64("asd")."\n";'
P7Z8i1EtjOczJNsC3aLRnr+51qkjxI+1A74+DHx1LrhOTaCBhmUTOidjjc6OnoaWpRtktrJHNUdkYJ8itOZdNQ
After removing the package on Debian 8, and installing 0.24 via cpan
(Module = Digest::SHA3 (MSHELOR/Digest-SHA3-0.24.tar.gz))
$ perl -e 'use Digest::SHA3; print
Digest::SHA3::sha3_512_base64("asd")."\n";'
nmHxyCEMEg/NQTQ/0uuHNPyVPe4E7TGDDacBc82z5WG+e7ATiqzV0nejz+bLcZTxzrdSiwMn9Il51JkK0qy05Q
I also tested the cpan 0.22 version on a clean install
$ perl -e 'use Digest::SHA3; print
Digest::SHA3::sha3_512_base64("asd")."\n";'
P7Z8i1EtjOczJNsC3aLRnr+51qkjxI+1A74+DHx1LrhOTaCBhmUTOidjjc6OnoaWpRtktrJHNUdkYJ8itOZdNQ
The change in output appears from 0.23
$ perl -e 'use Digest::SHA3; print
Digest::SHA3::sha3_512_base64("asd")."\n";'
nmHxyCEMEg/NQTQ/0uuHNPyVPe4E7TGDDacBc82z5WG+e7ATiqzV0nejz+bLcZTxzrdSiwMn9Il51JkK0qy05Q
F