-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(common): add 132 bits security curves
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
tools/parameter-curves/concrete-security-curves-cpp/include/concrete/curves.gen.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
19 changes: 17 additions & 2 deletions
19
tools/parameter-curves/concrete-security-curves-rust/src/gaussian/curves_gen.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
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, | ||
}, | ||
), | ||
]; |