Subject: | Calling ->hexdigest multiple times produces inconsistent results |
Date: | Tue, 12 Jan 2016 13:32:25 -0800 |
To: | bug-Digest-HMAC [...] rt.cpan.org |
From: | Bob Kleemann <rkleemann [...] gmail.com> |
$ perl -MDigest::HMAC_MD5 -E '$hmac = Digest::HMAC_MD5->new(""); say
$hmac->hexdigest for (1 .. 3);'
74e6f7298a9c2d168935f58c001bad88
56df0b39205c1ef983211c06263ec1e3
56df0b39205c1ef983211c06263ec1e3
It appears there is a bug where calling hexdigest multiple times produces
different results between the first time and every subsequent time it's
called. In the code above, the 74e6 value is correct, and I think the 56df
value is the result of hashing the correct value an additional time.