Skip to content

Commit

Permalink
Add bdd_hybrid(mitm,babai=False) in docs for NTRU
Browse files Browse the repository at this point in the history
Use the fastest method for rough estimates so mitm=false and babai=false!
  • Loading branch information
ludopulles committed Sep 23, 2024
1 parent 31957df commit 15d6547
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions estimator/ntru.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def rough(self, params, jobs=1, catch_exceptions=True):
>>> from estimator import *
>>> _ = NTRU.estimate.rough(schemes.NTRUHPS2048509Enc)
usvp :: rop: ≈2^109.2, red: ≈2^109.2, δ: 1.004171, β: 374, d: 643, tag: usvp
bdd_hybrid :: rop: ≈2^108.6, red: ≈2^107.7, svp: ≈2^107.5, β: 369, η: 368, ζ: 0, |S|: 1, ...
"""
params = params.normalize()
Expand All @@ -61,8 +62,12 @@ def rough(self, params, jobs=1, catch_exceptions=True):
)

if params.Xs.is_sparse:
algorithms["hybrid"] = partial(
primal_hybrid, red_cost_model=RC.ADPS16, red_shape_model="zgsa"
algorithms["bdd_hybrid"] = partial(
primal_hybrid,
mitm=False,
babai=False,
red_cost_model=RC.ADPS16,
red_shape_model="ZGSA",
)

res_raw = batch_estimate(
Expand Down

0 comments on commit 15d6547

Please sign in to comment.