remove extraneous FFFFFFFF mask
This commit is contained in:
parent
1657b39fb7
commit
3d4d8ecb16
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user