Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ private K_PKE_KeyPair generateK_PkeKeyPair(byte[] seed) {
}

mlKemG.update(seed);
// mlKemG.update((byte)mlKem_k);
mlKemG.update((byte)mlKem_k);

var rhoSigma = mlKemG.digest();
var rho = Arrays.copyOfRange(rhoSigma, 0, 32);
Expand Down Expand Up @@ -1009,10 +1009,7 @@ static void implKyberNttJava(short[] poly) {
// The elements of poly at return will be in the range of [0, mlKem_q]
private void mlKemNTT(short[] poly) {
assert poly.length == ML_KEM_N;
if (implKyberNtt(poly, montZetasForVectorNttArr) == 0) {
// System.out.println(Arrays.toString(poly));
// System.exit(12);
}
implKyberNtt(poly, montZetasForVectorNttArr);
mlKemBarrettReduce(poly);
}

Expand Down