Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rickwebiii committed Apr 4, 2024
1 parent 5abe4e3 commit 7c2a6a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion sunscreen_tfhe/src/ops/ciphertext/glwe_ciphertext_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ mod tests {
use crate::{
entities::{GgswCiphertext, LweCiphertext, Polynomial},
high_level::*,
high_level::{keygen, TEST_GLWE_DEF_1},
ops::encryption::{
decrypt_ggsw_ciphertext, encrypt_ggsw_ciphertext, encrypt_glwe_ciphertext_secret,
trivially_encrypt_glwe_ciphertext,
Expand Down
5 changes: 4 additions & 1 deletion sunscreen_tfhe/src/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ use crate::TorusOps;

use sunscreen_math::security::lwe_std_to_security_level;

trait SecurityLevel {
/// A trait for asserting properties about the security parameter.
pub trait SecurityLevel {
/// Return the security level.
fn security_level(&self) -> f64;

/// Assert the security level matches the given value.
fn assert_security_level(&self, specified_security_level: usize) {
// Our security level should be within 0.5 bits of the specified
// security level (so +- 0.25 of the desired level).
Expand Down

0 comments on commit 7c2a6a6

Please sign in to comment.