From a10754bcd95533389c12c221198b8ea74d03d75b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20P=C3=A9r=C3=A9?= Date: Mon, 9 Dec 2024 10:44:28 +0100 Subject: [PATCH] chore(common): add 132 bits security curves --- .../include/concrete/curves.gen.h | 3 ++- .../src/gaussian/curves_gen.rs | 19 +++++++++++++++++-- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/tools/parameter-curves/concrete-security-curves-cpp/include/concrete/curves.gen.h b/tools/parameter-curves/concrete-security-curves-cpp/include/concrete/curves.gen.h index 92d7597d2f..b9350f49ea 100644 --- a/tools/parameter-curves/concrete-security-curves-cpp/include/concrete/curves.gen.h +++ b/tools/parameter-curves/concrete-security-curves-cpp/include/concrete/curves.gen.h @@ -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; diff --git a/tools/parameter-curves/concrete-security-curves-rust/src/gaussian/curves_gen.rs b/tools/parameter-curves/concrete-security-curves-rust/src/gaussian/curves_gen.rs index b173b549b3..8d1453dddb 100644 --- a/tools/parameter-curves/concrete-security-curves-rust/src/gaussian/curves_gen.rs +++ b/tools/parameter-curves/concrete-security-curves-rust/src/gaussian/curves_gen.rs @@ -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, + }, + ), ];