Browse Source

remove extraneous FFFFFFFF mask

pull/1/head
David Ashby 4 years ago
parent
commit
3d4d8ecb16
  1. 2
      shamwow.rb

2
shamwow.rb

@ -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…
Cancel
Save