We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d372a6 commit 4127c2fCopy full SHA for 4127c2f
core/src/main/java/org/bouncycastle/crypto/engines/AsconPermutationFriend.java
@@ -32,10 +32,10 @@ public void round(long C)
32
long x0x4 = x0 ^ x4;
33
//long x0x2c = x0 ^ x2;
34
long x1x2c = x1 ^ x2;
35
-
36
- long t0 = x3 ^ (x1 | x2) ^ x0 ^ (x1 & x0x4);
+ long x1orx2c = x1 | x2;
+ long t0 = x3 ^ x1orx2c ^ x0 ^ (x1 & x0x4);
37
//long t1 = x0x4 ^ x2 ^ x3 ^ (x1x2c & (x1 ^ x3));
38
- long t1 = x0x4 ^ (x1 | x2 | x3) ^ (x1 & x2 & x3);
+ long t1 = x0x4 ^ (x1orx2c | x3) ^ (x1 & x2 & x3);
39
long t2 = x1x2c ^ (x4 & (~x3));//x4 ^ (x3 & x4);
40
//long t3 = x0 ^ x1x2c ^ ((~x0) & (x3 ^ x4));
41
long t3 = (x0 | (x3 ^ x4)) ^ x1x2c;
0 commit comments