Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-10-20 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (75 votes), past polls