From 06474f9caec48b9b97ac0630cf680e60f44bdd70 Mon Sep 17 00:00:00 2001 From: Janmajaya Mall Date: Tue, 16 Jul 2024 12:16:08 -0700 Subject: [PATCH] make necessary things pub for bool enc --- src/bool/ni_mp_api.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bool/ni_mp_api.rs b/src/bool/ni_mp_api.rs index 7efaa6f..c9403df 100644 --- a/src/bool/ni_mp_api.rs +++ b/src/bool/ni_mp_api.rs @@ -179,7 +179,7 @@ impl Global for RuntimeServerKey { /// `self.key_switch(user_id)` where `user_id` is user j's id. Key switch /// returns `BatchedFheBools` that stored key vector of key switched RLWE /// ciphertext. -pub(super) struct NonInteractiveBatchedFheBools { +pub struct NonInteractiveBatchedFheBools { data: Vec, } @@ -191,7 +191,7 @@ pub(super) struct NonInteractiveBatchedFheBools { /// /// To extract bool ciphertext at `index` as LWE ciphertext use /// `self.extract(index)` -pub(super) struct BatchedFheBools { +pub struct BatchedFheBools { pub(in super::super) data: Vec, } @@ -222,7 +222,7 @@ mod impl_enc_dec { where C::R: RowEntity + RowMut, { - pub(crate) fn extract(&self, index: usize) -> C::R { + pub fn extract(&self, index: usize) -> C::R { BoolEvaluator::with_local(|e| { let ring_size = e.parameters().rlwe_n().0; let ct_index = index / ring_size;