Skip to content

Conversation

lehugueni
Copy link
Contributor

Fixes #478.

Now, when a plaintext has its flag isBatched=false, one can encode a maximal number of N (set in the parameters) values onto it. This, regardless of the plaintext modulus set in the parameters.

  • Makes the change described above
  • Modify BGV tests accordingly: test encoding with N values possible with isBatched=false and test other basic functions (add/sub) with unbatched ciphertexts
  • Make documentation more explicit about the maximal number of slots depending on the encoding.

@lehugueni lehugueni self-assigned this Sep 3, 2025
@lehugueni lehugueni requested a review from MGeorgie September 3, 2025 11:59
Copy link
Contributor

@MGeorgie MGeorgie left a comment

Choose a reason for hiding this comment

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

ok

@Pro7ech Pro7ech self-requested a review September 15, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug[BGV]: panic when encoding N values with IsBatched=false
2 participants