Skip to content

Commit

Permalink
doc(shortint): add some information about expand and the casting_mode…
Browse files Browse the repository at this point in the history
… used
  • Loading branch information
IceTDrinker committed Sep 17, 2024
1 parent e0551ab commit 9015f26
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tfhe/src/shortint/ciphertext/compact_list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ impl ParameterSetConformant for CompactCiphertextList {
}

impl CompactCiphertextList {
/// Expand a [`CompactCiphertextList`] to a `Vec` of [`Ciphertext`].
///
/// The function takes a [`ShortintCompactCiphertextListCastingMode`] to indicate whether a
/// keyswitch should be applied during expansion.
///
/// This is useful when using separate parameters for the public key used to encrypt the
/// [`CompactCiphertextList`] allowing to keyswitch to the computation params during expansion.
pub fn expand(
&self,
casting_mode: ShortintCompactCiphertextListCastingMode<'_>,
Expand Down

0 comments on commit 9015f26

Please sign in to comment.