Skip to content

Commit

Permalink
chore(ci): print security level in parameters check
Browse files Browse the repository at this point in the history
The devo profile is used to speed up the compilation phase.
  • Loading branch information
soonum committed Sep 20, 2023
1 parent 53da809 commit 04fb46e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/parameters_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Collect parameters
run: |
make write_params_to_file
CARGO_PROFILE=devo make write_params_to_file
- name: Perform security check
run: |
Expand Down
7 changes: 4 additions & 3 deletions ci/lattice_estimator.sage
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 04fb46e

Please sign in to comment.