Skip to content

Commit 8b12dbf

Browse files
committed
wip(problematic): correct the bound to MLD_INTT_BOUND
Signed-off-by: willieyz <[email protected]>
1 parent 033e716 commit 8b12dbf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mldsa/poly.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ void mld_poly_invntt_tomont(mld_poly *a)
137137
{
138138
mld_assert_abs_bound(a->coeffs, MLDSA_N, MLDSA_Q);
139139
mld_intt_native(a->coeffs);
140-
mld_assert_abs_bound(a->coeffs, MLDSA_N, MLDSA_Q);
140+
mld_assert_abs_bound(a->coeffs, MLDSA_N, MLD_INTT_BOUND);
141141
}
142142
#endif /* MLD_USE_NATIVE_INTT */
143143

mldsa/polyvec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ void mld_polyvecl_invntt_tomont(mld_polyvecl *v)
240240
mld_poly_invntt_tomont(&v->vec[i]);
241241
}
242242

243-
mld_assert_abs_bound_2d(v->vec, MLDSA_L, MLDSA_N, MLD_NTT_BOUND);
243+
mld_assert_abs_bound_2d(v->vec, MLDSA_L, MLDSA_N, MLD_INTT_BOUND);
244244
}
245245

246246
void mld_polyvecl_pointwise_poly_montgomery(mld_polyvecl *r, const mld_poly *a,
@@ -483,7 +483,7 @@ void mld_polyveck_invntt_tomont(mld_polyveck *v)
483483
mld_poly_invntt_tomont(&v->vec[i]);
484484
}
485485

486-
mld_assert_abs_bound_2d(v->vec, MLDSA_K, MLDSA_N, MLD_NTT_BOUND);
486+
mld_assert_abs_bound_2d(v->vec, MLDSA_K, MLDSA_N, MLD_INTT_BOUND);
487487
}
488488

489489
void mld_polyveck_pointwise_poly_montgomery(mld_polyveck *r, const mld_poly *a,

0 commit comments

Comments
 (0)