Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GLWE_5_256_128 security test #373

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion sunscreen_tfhe/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down
Loading