mirror of
https://github.com/minetest/minetest.git
synced 2024-12-23 22:52:25 +01:00
Simplify bit flip in sha1.cpp
This commit is contained in:
parent
9acf2d3db7
commit
2c3f641e0b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user