forked from minetest-mods/MoreMesecons
Fix #4 by limiting the sum output to 32 bits.
This commit is contained in:
parent
467f30efb6
commit
dd10f1c9de
3
md5.lua
3
md5.lua
@ -346,7 +346,8 @@ local function transform(A,B,C,D,X)
|
||||
c=z(i,c,d,a,b,X[ 2],15,t[63])
|
||||
b=z(i,b,c,d,a,X[ 9],21,t[64])
|
||||
|
||||
return A+a,B+b,C+c,D+d
|
||||
return bit_and(A+a,0xFFFFFFFF),bit_and(B+b,0xFFFFFFFF),
|
||||
bit_and(C+c,0xFFFFFFFF),bit_and(D+d,0xFFFFFFFF)
|
||||
end
|
||||
|
||||
----------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user