remove extraneous FFFFFFFF mask

This commit is contained in:
David 2017-09-03 22:04:59 -04:00
parent 1657b39fb7
commit 3d4d8ecb16

View File

@ -131,7 +131,7 @@ def sha1(message)
message.each_with_index { |word, index| m[index] = word.to_i(2) }
(16..79).each { |word|
m[word] = lor((m[word-3] ^ m[word-8] ^ m[word-14] ^ m[word-16]), 1) & 0xFFFFFFFF
m[word] = lor((m[word-3] ^ m[word-8] ^ m[word-14] ^ m[word-16]), 1)
}
a = h0