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

People
Owner: Nobody in particular
Requestors: rkleemann [...] gmail.com
Cc:
AdminCc:

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 [...] rt.cpan.org
From: Bob Kleemann <rkleemann [...] gmail.com>
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 Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.