Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GLEV cmux #390

Merged
merged 3 commits into from
Jan 13, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Doc tests
Rick Weber committed Jan 13, 2025
commit b748fd4be882ba268e4335be0ed6921fe22a4ed4
2 changes: 1 addition & 1 deletion sunscreen_tfhe/src/high_level.rs
Original file line number Diff line number Diff line change
@@ -1001,7 +1001,7 @@ pub mod evaluation {
/// For step 2, we use private functional keyswitching (PFKS) to transform the
/// `cbs_radix.count` [LweCiphertext]s encrypted under `glwe_2` into
/// `cbs_radix.count * glwe_2.size + 1` [GlweCiphertext]s. The PFKS operations multiply each
/// [GlevCiphertext](crate::entities::GlevCiphertext) by the corresponding polynomial in
/// [GlevCiphertext] by the corresponding polynomial in
/// the `glwe_1` [GlweSecretKey](crate::entities::GlweSecretKey) to create a valid
/// [GgswCiphertext].
///
2 changes: 1 addition & 1 deletion sunscreen_tfhe/src/ops/encryption/glev_encryption.rs
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ pub(crate) fn encrypt_secret_glev_ciphertext_generic<S>(
/// # Remarks
/// GLEV ciphertexts feature redundant encryptions of `msg` where each message is scaled
/// by a corresponding gadget factor. This sets up some clever algebraic cancellation
/// that enables the GGSW [x] GLWE outer product.
/// that enables the GGSW-times-GLWE outer product.
pub fn scale_msg_by_gadget_factor<S>(
scaled_msg: &mut PolynomialRef<Torus<S>>,
msg: &PolynomialRef<Torus<S>>,