chore(ci): print security level in parameters check

The devo profile is used to speed up the compilation phase.
This commit is contained in:
David Testé
2023-09-20 11:07:46 +02:00
committed by David Testé
parent 53da809f37
commit 04fb46e41b
2 changed files with 5 additions and 4 deletions

View File

@@ -43,16 +43,17 @@ def check_security(filename):
dual_level = LWE.dual_hybrid(param, red_cost_model = model)
estimator_level = log(min(usvp_level["rop"], dual_level["rop"]),2 )
security_level = f"security level = {estimator_level} bits"
if estimator_level < 127:
print("FAIL")
reason = f"attained security level = {estimator_level} bits target is 128 bits"
print("FAIL\t({security_level})")
reason = f"attained {security_level} target is 128 bits"
to_update.append((param, reason))
continue
except Exception as err:
print("FAIL")
to_update.append((param, f"{repr(err)}"))
else:
print("OK")
print(f"OK\t({security_level})")
return to_update