Skip to content

Commit

Permalink
feat(integer): add raw parts API to integer CompressionPrivateKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
titouantanguy authored and nsarlin-zama committed Sep 19, 2024
1 parent 1c59c1c commit b93c23e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tfhe/src/integer/compression_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ impl CompressedDecompressionKey {
}
}

impl CompressionPrivateKeys {
pub fn into_raw_parts(self) -> crate::shortint::list_compression::CompressionPrivateKeys {
let Self { key } = self;
key
}

pub fn from_raw_parts(key: crate::shortint::list_compression::CompressionPrivateKeys) -> Self {
Self { key }
}
}

impl CompressionKey {
pub fn into_raw_parts(self) -> crate::shortint::list_compression::CompressionKey {
let Self { key } = self;
Expand Down

0 comments on commit b93c23e

Please sign in to comment.