Skip to content

Commit

Permalink
chore(gpu): make to_glwe_ciphertext_list pub
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesLeroy authored and pdroalves committed Oct 14, 2024
1 parent d8ac12d commit 416fb5a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tfhe/src/core_crypto/gpu/entities/glwe_ciphertext_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ impl<T: UnsignedInteger> CudaGlweCiphertextList<T> {
Self(cuda_glwe_list)
}

pub(crate) fn to_glwe_ciphertext_list(
&self,
streams: &CudaStreams,
) -> GlweCiphertextList<Vec<T>> {
pub fn to_glwe_ciphertext_list(&self, streams: &CudaStreams) -> GlweCiphertextList<Vec<T>> {
let glwe_ct_size = self.0.glwe_ciphertext_count.0
* glwe_ciphertext_size(self.0.glwe_dimension.to_glwe_size(), self.0.polynomial_size);
let mut container: Vec<T> = vec![T::ZERO; glwe_ct_size];
Expand Down

0 comments on commit 416fb5a

Please sign in to comment.