Fix #4 by limiting the sum output to 32 bits.

This commit is contained in:
Pedro Gimeno 2016-07-02 10:44:35 +02:00
parent 467f30efb6
commit dd10f1c9de
1 changed files with 2 additions and 1 deletions

View File

@ -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
----------------------------------------------------------------