Skip to content

Commit

Permalink
chore(common): add 132 bits security curves
Browse files Browse the repository at this point in the history
  • Loading branch information
aPere3 committed Dec 9, 2024
1 parent f0e0a08 commit 68a0ed9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SecurityCurve curves[] = {
SecurityCurve(128, -0.025696778711484593, 2.675931372549016, 450, KeyFormat::BINARY),
SecurityCurve(132, -0.024891456582633045, 2.65734593837534, 450, KeyFormat::BINARY),
};

size_t curvesLen = 1;
size_t curvesLen = 2;
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
use super::security_weights::SecurityWeights;
pub const SECURITY_WEIGHTS_ARRAY: [(u64, SecurityWeights); 1] = [
(128, SecurityWeights { slope: -0.025696778711484593, bias: 2.675931372549016, minimal_lwe_dimension: 450 }),
pub const SECURITY_WEIGHTS_ARRAY: [(u64, SecurityWeights); 2] = [
(
128,
SecurityWeights {
slope: -0.025696778711484593,
bias: 2.675931372549016,
minimal_lwe_dimension: 450,
},
),
(
132,
SecurityWeights {
slope: -0.024891456582633045,
bias: 2.65734593837534,
minimal_lwe_dimension: 450,
),
];

0 comments on commit 68a0ed9

Please sign in to comment.