We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 765fe13 commit df13f89Copy full SHA for df13f89
1 file changed
src/pqc/mlkem.c
@@ -480,7 +480,7 @@ static void s_mlkem_poly_reduce(mlkem_poly *r)
480
static void s_mlkem_poly_getnoise(mlkem_poly *r, const unsigned char seed[MLKEM_SYMBYTES],
481
unsigned char nonce, int eta)
482
{
483
- unsigned char buf[3 * MLKEM_N / 4]; /* max for eta=3 */
+ unsigned char buf[3 * MLKEM_N / 4] = {0}; /* max for eta=3 */
484
unsigned long buflen = (unsigned long)eta * MLKEM_N / 4;
485
s_mlkem_prf(buf, buflen, seed, nonce);
486
s_mlkem_poly_cbd_eta(r, buf, eta);
0 commit comments