From 0e65df979595d03fc3f1d364d5bafc7c94987220 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bossuat Date: Tue, 8 Jul 2025 17:00:42 +0200 Subject: [PATCH] export blind rotation --- core/src/blind_rotation/{ccgi.rs => cggi.rs} | 0 core/src/blind_rotation/mod.rs | 7 +++++-- core/src/blind_rotation/test_fft64/cggi.rs | 2 +- core/src/lib.rs | 4 +++- 4 files changed, 9 insertions(+), 4 deletions(-) rename core/src/blind_rotation/{ccgi.rs => cggi.rs} (100%) diff --git a/core/src/blind_rotation/ccgi.rs b/core/src/blind_rotation/cggi.rs similarity index 100% rename from core/src/blind_rotation/ccgi.rs rename to core/src/blind_rotation/cggi.rs diff --git a/core/src/blind_rotation/mod.rs b/core/src/blind_rotation/mod.rs index 1b3d5ff..bbbdd2c 100644 --- a/core/src/blind_rotation/mod.rs +++ b/core/src/blind_rotation/mod.rs @@ -1,7 +1,10 @@ -// pub mod cggi; -pub mod ccgi; +pub mod cggi; pub mod key; pub mod lut; +pub use cggi::{cggi_blind_rotate, cggi_blind_rotate_scratch_space}; +pub use key::BlindRotationKeyCGGI; +pub use lut::LookUpTable; + #[cfg(test)] pub mod test_fft64; diff --git a/core/src/blind_rotation/test_fft64/cggi.rs b/core/src/blind_rotation/test_fft64/cggi.rs index ea8291a..e544494 100644 --- a/core/src/blind_rotation/test_fft64/cggi.rs +++ b/core/src/blind_rotation/test_fft64/cggi.rs @@ -4,7 +4,7 @@ use sampling::source::Source; use crate::{ FourierGLWESecret, GLWECiphertext, GLWEPlaintext, GLWESecret, Infos, LWECiphertext, LWESecret, blind_rotation::{ - ccgi::{cggi_blind_rotate, cggi_blind_rotate_scratch_space, negate_and_mod_switch_2n}, + cggi::{cggi_blind_rotate, cggi_blind_rotate_scratch_space, negate_and_mod_switch_2n}, key::BlindRotationKeyCGGI, lut::LookUpTable, }, diff --git a/core/src/lib.rs b/core/src/lib.rs index f94963c..9f8c114 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -11,14 +11,16 @@ pub mod noise; use backend::Backend; use backend::FFT64; use backend::Module; +pub use blind_rotation::{BlindRotationKeyCGGI, LookUpTable, cggi_blind_rotate, cggi_blind_rotate_scratch_space}; pub use elem::{GetRow, Infos, SetMetaData, SetRow}; pub use fourier_glwe::{FourierGLWECiphertext, FourierGLWESecret}; pub use gglwe::{GGLWECiphertext, GLWEAutomorphismKey, GLWESwitchingKey, GLWETensorKey}; pub use ggsw::GGSWCiphertext; pub use glwe::{GLWECiphertext, GLWEOps, GLWEPacker, GLWEPlaintext, GLWEPublicKey, GLWESecret}; -pub(crate) use glwe::{GLWECiphertextToMut, GLWECiphertextToRef}; pub use lwe::{LWECiphertext, LWESecret}; +pub(crate) use glwe::{GLWECiphertextToMut, GLWECiphertextToRef}; + pub use backend::Scratch; pub use backend::ScratchOwned;