From 0dd1825341a8b2750bd3b5daaa1e63ad41d9503a Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 12 Apr 2022 14:52:51 +0100 Subject: [PATCH] update --- new_scripts.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/new_scripts.py b/new_scripts.py index 6233a75ad..8d31740fa 100644 --- a/new_scripts.py +++ b/new_scripts.py @@ -95,6 +95,13 @@ def automated_param_select_n(params, target_security=128): # TODO -- is this how we want to deal with the small n issue? Shouldn't the model have this baked in? # we want to start no lower than n = 450 n_start = max(n_start, 450) + + #if n_start > 1024: + # we only consider powers-of-two for now, in this range + # n_log = log2(n_start) + # n_start = 2**round(n_log) + + print("n_start = {}".format(n_start)) params = params.updated(n=n_start) print(params) @@ -119,6 +126,7 @@ def automated_param_select_n(params, target_security=128): # final estimate (we went too far in the above loop) if security_level < target_security: # we make n larger + print("we make n larger") params = params.updated(n = params.n + 8) costs = estimate(params) security_level = get_security_level(costs, 2)