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

fix(shortint): error message in packing keyswitch #1974

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

nsarlin-zama
Copy link
Contributor

No description provided.

@@ -46,7 +46,7 @@ impl CompressionKey {

assert!(
message_modulus.0 <= carry_modulus.0,
"GLWE packing is implemented with messages in carries, so carry_modulus (={}) can't be bigger than message_modulus(={})",
"GLWE packing is implemented with messages in carries, so carry_modulus (={}) must be bigger than message_modulus(={})",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I meant message_modulus can't be bigger than carry_modulus (understood in the sense strictly bigger).

It think using the "must be bigger or equal" or inverting (as I meant) would be clearer

@nsarlin-zama nsarlin-zama force-pushed the ns/fix/errmsg_packing_ks branch from 4709c16 to 7ebd0ab Compare January 15, 2025 14:59
@nsarlin-zama nsarlin-zama force-pushed the ns/fix/errmsg_packing_ks branch from 7ebd0ab to cd96bde Compare January 15, 2025 15:00
Copy link
Contributor

@mayeul-zama mayeul-zama left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nsarlin-zama nsarlin-zama merged commit cbdba38 into main Jan 16, 2025
107 checks passed
@nsarlin-zama nsarlin-zama deleted the ns/fix/errmsg_packing_ks branch January 16, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants