Browse Source

make necessary things pub for bool enc

par-agg-key-shares
Janmajaya Mall 9 months ago
parent
commit
06474f9cae
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/bool/ni_mp_api.rs

+ 3
- 3
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 /// `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 /// returns `BatchedFheBools` that stored key vector of key switched RLWE
/// ciphertext. /// ciphertext.
pub(super) struct NonInteractiveBatchedFheBools<C> {
pub struct NonInteractiveBatchedFheBools<C> {
data: Vec<C>, data: Vec<C>,
} }
@ -191,7 +191,7 @@ pub(super) struct NonInteractiveBatchedFheBools {
/// ///
/// To extract bool ciphertext at `index` as LWE ciphertext use /// To extract bool ciphertext at `index` as LWE ciphertext use
/// `self.extract(index)` /// `self.extract(index)`
pub(super) struct BatchedFheBools<C> {
pub struct BatchedFheBools<C> {
pub(in super::super) data: Vec<C>, pub(in super::super) data: Vec<C>,
} }
@ -222,7 +222,7 @@ mod impl_enc_dec {
where where
C::R: RowEntity + RowMut, 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| { BoolEvaluator::with_local(|e| {
let ring_size = e.parameters().rlwe_n().0; let ring_size = e.parameters().rlwe_n().0;
let ct_index = index / ring_size; let ct_index = index / ring_size;

Loading…
Cancel
Save