Skip to content

Commit b93c23e

Browse files
titouantanguynsarlin-zama
authored andcommitted
feat(integer): add raw parts API to integer CompressionPrivateKeys
1 parent 1c59c1c commit b93c23e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tfhe/src/integer/compression_keys.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,17 @@ impl CompressedDecompressionKey {
4949
}
5050
}
5151

52+
impl CompressionPrivateKeys {
53+
pub fn into_raw_parts(self) -> crate::shortint::list_compression::CompressionPrivateKeys {
54+
let Self { key } = self;
55+
key
56+
}
57+
58+
pub fn from_raw_parts(key: crate::shortint::list_compression::CompressionPrivateKeys) -> Self {
59+
Self { key }
60+
}
61+
}
62+
5263
impl CompressionKey {
5364
pub fn into_raw_parts(self) -> crate::shortint::list_compression::CompressionKey {
5465
let Self { key } = self;

0 commit comments

Comments
 (0)