diff --git a/tfhe/src/core_crypto/entities/glwe_secret_key.rs b/tfhe/src/core_crypto/entities/glwe_secret_key.rs index ac79fd4c4e..76c54f505f 100644 --- a/tfhe/src/core_crypto/entities/glwe_secret_key.rs +++ b/tfhe/src/core_crypto/entities/glwe_secret_key.rs @@ -9,6 +9,7 @@ use crate::core_crypto::commons::math::random::{RandomGenerable, UniformBinary}; use crate::core_crypto::commons::parameters::*; use crate::core_crypto::commons::traits::*; use crate::core_crypto::entities::*; +use crate::named::Named; /// A [`GLWE secret key`](`GlweSecretKey`) /// @@ -28,6 +29,10 @@ pub struct GlweSecretKey { polynomial_size: PolynomialSize, } +impl Named for GlweSecretKey { + const NAME: &'static str = "core_crypto::GlweSecretKey"; +} + impl> AsRef<[T]> for GlweSecretKey { fn as_ref(&self) -> &[T] { self.data.as_ref() diff --git a/tfhe/src/core_crypto/entities/lwe_secret_key.rs b/tfhe/src/core_crypto/entities/lwe_secret_key.rs index fcef0c799b..f5f6394ad9 100644 --- a/tfhe/src/core_crypto/entities/lwe_secret_key.rs +++ b/tfhe/src/core_crypto/entities/lwe_secret_key.rs @@ -8,6 +8,7 @@ use crate::core_crypto::commons::generators::SecretRandomGenerator; use crate::core_crypto::commons::math::random::{RandomGenerable, UniformBinary}; use crate::core_crypto::commons::parameters::LweDimension; use crate::core_crypto::commons::traits::*; +use crate::named::Named; /// An [`LWE secret key`](`LweSecretKey`). /// @@ -25,6 +26,10 @@ pub struct LweSecretKey { data: C, } +impl Named for LweSecretKey { + const NAME: &'static str = "core_crypto::LweSecretKey"; +} + impl> AsRef<[T]> for LweSecretKey { fn as_ref(&self) -> &[T] { self.data.as_ref()