Skip to content

Commit c7e0adb

Browse files
authored
Kyber_py CCAPKE_Keygen function correction
to generate e, the correct is to use eta_2. Doesn't change much for advanced kyber types tho, but found it while studying.
1 parent 3900d1a commit c7e0adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kyber_py/kyber/kyber.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def _cpapke_keygen(self):
168168
s_hat = s.to_ntt()
169169

170170
# Generate the error vector e ∈ R^k
171-
e, N = self._generate_error_vector(sigma, self.eta_1, N)
171+
e, N = self._generate_error_vector(sigma, self.eta_2, N)
172172
e_hat = e.to_ntt()
173173

174174
# Construct the public key

0 commit comments

Comments
 (0)