From 00691670655d0ab25c2d00f45884ea1de1a5a225 Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 11 Apr 2022 16:38:07 +0100 Subject: [PATCH] optimize --- new_scripts.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/new_scripts.py b/new_scripts.py index f91b22b0b..fdee04dea 100644 --- a/new_scripts.py +++ b/new_scripts.py @@ -122,12 +122,8 @@ def automated_param_select_n(params, target_security=128): # final estimate (we went too far in the above loop) if security_level < target_security: - # TODO: we should somehow keep the previous estimate stored so that we don't need to compute it twice - # if we do this we need to make sure that it works for both sides (i.e. if (i-1) is above or below the - # security level - + # we go back params = params.updated(n = params.n - z * 8) - costs = estimate(params) security_level = get_security_level(costs, 2) print("the finalised parameters are n = {}, log2(sd) = {}, log2(q) = {}, with a security level of {}-bits".format(params.n,