Skip to content

Commit

Permalink
ℓ_2 norm triviality check should be a bit more permissive
Browse files Browse the repository at this point in the history
  • Loading branch information
malb committed May 8, 2024
1 parent 60808bd commit 1d6e682
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions estimator/sis_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ def cost_euclidean(
**kwds,
):
# Check for triviality
if params.length_bound >= params.q:
raise ValueError("SIS trivially easy. Please set norm bound < q.")
if params.length_bound >= sqrt(params.m) * params.q // 2:
raise ValueError("SIS trivially easy. Please set norm bound < √{m}⋅q/2.")

if d is None:
d = min(floor(SISLattice._opt_sis_d(params)), params.m)
Expand Down

0 comments on commit 1d6e682

Please sign in to comment.