Skip to content

Commit 346b0f9

Browse files
committed
minor cleanups.
1 parent 46d9206 commit 346b0f9

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

core/src/main/java/org/bouncycastle/pqc/crypto/crystals/dilithium/Ntt.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ static int[] ntt(int[] a)
5959
r[j] = r[j] + t;
6060
}
6161
}
62-
// System.out.println();
6362
}
6463
return r;
6564
}

core/src/main/java/org/bouncycastle/pqc/crypto/crystals/kyber/Poly.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,6 @@ public void setCoeffs(short[] coeffs)
4343
public void polyNtt()
4444
{
4545
this.setCoeffs(Ntt.ntt(this.getCoeffs()));
46-
// System.out.print("PolyNTT = [");
47-
// for (int i = 0; i < KyberEngine.KyberN; i++) {
48-
// System.out.printf("%d, ", this.getCoeffIndex(i));
49-
// }
50-
// System.out.println("]");
5146
this.reduce();
5247
}
5348

core/src/main/java/org/bouncycastle/pqc/crypto/crystals/kyber/PolyVec.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,8 @@ public void polyVecInverseNttToMont()
5353
public byte[] compressPolyVec()
5454
{
5555
int i, j, k;
56-
// System.out.print("bp before sub q = [");
57-
// for (i = 0; i < kyberK; i++) {
58-
// Helper.printShortArray(this.getVectorIndex(i).getCoeffs());
59-
// System.out.print("], \n");
60-
// }
61-
// System.out.println("]");
6256

6357
this.conditionalSubQ();
64-
65-
// System.out.print("bp sub q = [");
66-
// for (i = 0; i < kyberK; i++) {
67-
// Helper.printShortArray(this.getVectorIndex(i).getCoeffs());
68-
// System.out.print("], \n");
69-
// }
70-
// System.out.println("]");
7158
short[] t;
7259
byte[] r = new byte[engine.getKyberPolyVecCompressedBytes()];
7360
int count = 0;

0 commit comments

Comments
 (0)