From 2d53ef4eaa6535d2ab898314b47558e377237c2f Mon Sep 17 00:00:00 2001 From: Ryan Orendorff <12442942+ryanorendorff@users.noreply.github.com> Date: Mon, 11 Mar 2024 23:47:52 -0600 Subject: [PATCH] Add GLWE_5_256_128 security test (#373) --- sunscreen_tfhe/src/params.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sunscreen_tfhe/src/params.rs b/sunscreen_tfhe/src/params.rs index 33c92f5f5..dc692a5b3 100644 --- a/sunscreen_tfhe/src/params.rs +++ b/sunscreen_tfhe/src/params.rs @@ -284,6 +284,10 @@ mod tests { println!("LWE 512 128: {}", actual_lwe_std); LWE_512_128.assert_security_level(128); + let actual_glwe_std = lwe_security_level_to_std(5 * 256, 128.0).unwrap(); + println!("GLWE 5 256 128: {}", actual_glwe_std); + GLWE_5_256_128.assert_security_level(129); + let actual_glwe_std = lwe_security_level_to_std(1024, 128.0).unwrap(); println!("GLWE 1 1024 128: {}", actual_glwe_std); GLWE_1_1024_128.assert_security_level(128); @@ -296,7 +300,7 @@ mod tests { println!("LWE 512 80: {}", actual_lwe_std); LWE_512_80.assert_security_level(80); - let actual_glwe_std = lwe_security_level_to_std(256 * 5, 80.0).unwrap(); + let actual_glwe_std = lwe_security_level_to_std(5 * 256, 80.0).unwrap(); println!("GLWE 5 256 80: {}", actual_glwe_std); GLWE_5_256_80.assert_security_level(80);