From b6d820ee4e1b64c53aaa4ddc8166b532ddad9c60 Mon Sep 17 00:00:00 2001 From: Ben Date: Thu, 12 Jan 2023 16:20:42 +0000 Subject: [PATCH] secret dist --- lattice-scripts/compare_curves_and_estimator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lattice-scripts/compare_curves_and_estimator.py b/lattice-scripts/compare_curves_and_estimator.py index 483acb92f..41943c6be 100644 --- a/lattice-scripts/compare_curves_and_estimator.py +++ b/lattice-scripts/compare_curves_and_estimator.py @@ -33,7 +33,7 @@ def estimate_security_with_lattice_estimator(lwe_dimension, std_dev, log_q): :return: """ params = LWE.Parameters( - n=lwe_dimension, q=2 ** log_q, Xs=ND.DiscreteGaussian(0.50, -0.50), Xe=ND.DiscreteGaussian(std_dev), m=oo, tag="params" + n=lwe_dimension, q=2 ** log_q, Xs=ND.UniformMod(2), Xe=ND.DiscreteGaussian(std_dev), m=oo, tag="params" ) costs = estimate(params, red_cost_model = RC.BDGL16) return get_security_level(costs, 2)