Skip to content

Commit

Permalink
prevent user from shooting themselves in the foot
Browse files Browse the repository at this point in the history
fixes #78
  • Loading branch information
malb committed Jul 12, 2017
1 parent 34fba90 commit 557871e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fpylll/fplll/bkz_param.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ cdef class Strategy:
for p in preprocessing_block_sizes:
if p<=2:
raise ValueError("Preprocessing block_size must be > 2, got %s", p)
if p >= block_size:
raise ValueError("Preprocessing block_size must be < block size, got %s", p)
self._core.preprocessing_block_sizes.push_back(p)

def get_pruning(self, radius, gh):
Expand Down

0 comments on commit 557871e

Please sign in to comment.