mirror of
https://github.com/luxfi/lattice-estimator.git
synced 2026-10-30 16:21:33 +00:00
25 lines
489 B
Python
25 lines
489 B
Python
# -*- coding: utf-8 -*-
|
|
"""
|
|
Default values.
|
|
"""
|
|
|
|
from .simulator import GSA
|
|
from .reduction import RC
|
|
from sage.all import exp
|
|
|
|
"""
|
|
Default models used to evaluate the cost and shape of lattice reduction.
|
|
This influences the concrete estimated cost of attacks.
|
|
"""
|
|
red_cost_model = RC.MATZOV
|
|
red_cost_model_classical_poly_space = RC.ABLR21
|
|
red_shape_model = "gsa"
|
|
red_simulator = GSA
|
|
|
|
mitm_opt = "analytical"
|
|
max_n_cache = 10000
|
|
|
|
|
|
def ntru_fatigue_lb(n):
|
|
return int((n**2.484)/exp(6))
|