Skip Menu |

This queue is for tickets about the Digest-HMAC CPAN distribution.

Report information
The Basics
Id: 111133
Status: new
Priority: 0/
Queue: Digest-HMAC

Owner: Nobody in particular
Requestors: rkleemann [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: Calling ->hexdigest multiple times produces inconsistent results
Date: Tue, 12 Jan 2016 13:32:25 -0800
To: bug-Digest-HMAC [...]
From: Bob Kleemann <rkleemann [...]>
Download (untitled) / with headers
text/plain 492b
$ 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.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to