aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/util/sha1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/sha1.cpp b/src/util/sha1.cpp
index d61b262af..ba95909ff 100644
--- a/src/util/sha1.cpp
+++ b/src/util/sha1.cpp
@@ -103,7 +103,7 @@ void SHA1::process()
{
if( t < 20 ) {
K = 0x5a827999;
- f = (b & c) | ((b ^ 0xFFFFFFFF) & d);//TODO: try using ~
+ f = (b & c) | ((~b) & d);
} else if( t < 40 ) {
K = 0x6ed9eba1;
f = b ^ c ^ d;