Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: MD5 -- not digest::md5

by ikegami (Pope)
on Aug 15, 2009 at 15:38 UTC ( #788902=note: print w/ replies, xml ) Need Help??


in reply to Re^2: MD5 -- not digest::md5
in thread MD5 -- not digest::md5

$b = ($b + (($a + $f + $k[$i] + $w[$g]) << $r[$i])) % (2**32);

Might not give the right result. "The result of overflowing the range of the integers is undefined" according to the docs. You need to do the proper masking *before* the shift, not after.


Comment on Re^3: MD5 -- not digest::md5
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://788902]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2016-02-06 10:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (222 votes), past polls