arnaucube
arnaucube/phantom-zonePublic Self-hosted repository
make necessary things pub for bool enc
Janmajaya Mall janmajayamall@protonmail.com
Tue, 16 Jul 2024 12:16:08 -0700
commit

06474f9caec48b9b97ac0630cf680e60f44bdd70

parent

2239fbe0045c3cfa0f7f85f94fab15fa843421cb

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/bool/ni_mp_api.rs → src/bool/ni_mp_api.rs

@@ -179,7 +179,7 @@ /// ciphertexts from u_j to ideal RLWE secret `s` with

/// `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<C> { +pub struct NonInteractiveBatchedFheBools<C> { data: Vec<C>, }

@@ -191,7 +191,7 @@ /// N` of `index / N`th RLWE ciphertext.

/// /// To extract bool ciphertext at `index` as LWE ciphertext use /// `self.extract(index)` -pub(super) struct BatchedFheBools<C> { +pub struct BatchedFheBools<C> { pub(in super::super) data: Vec<C>, }

@@ -222,7 +222,7 @@ impl<C: MatrixMut<MatElement = u64>> BatchedFheBools<C>

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;