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 60db1b0 commit 267c1c6Copy full SHA for 267c1c6
core/src/main/java/org/bouncycastle/pqc/crypto/crystals/dilithium/Reduce.java
@@ -6,7 +6,7 @@ static int montgomeryReduce(long a)
6
{
7
int t;
8
t = (int)(a * DilithiumEngine.DilithiumQinv);
9
- t = (int)((a - (long)((long)t * DilithiumEngine.DilithiumQ)) >>> 32);
+ t = (int)((a - ((long)t) * DilithiumEngine.DilithiumQ) >>> 32);
10
// System.out.printf("%d, ", t);
11
return t;
12
0 commit comments