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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://788902]
help
Chatterbox?
[1nickt]: thx chacham. Not sure if it would be more work defining the new acronym or explaining the grey areas of the existing one :-/

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2017-07-22 19:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (340 votes). Check out past polls.