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

Added a validation for the cryptocontext params: digitSize should be less than 32 if keySwitchTechnique == BV (BGV/BFV) #912

Merged

Conversation

dsuponitskiy
Copy link
Collaborator

@dsuponitskiy dsuponitskiy commented Nov 23, 2024

Validate digitSize for BFV/BGV:
it should not be greater than (MAX_MODULUS_SIZE/2) if keySwitchTechnique is set to "BV"

@dsuponitskiy dsuponitskiy added the bug Something isn't working label Nov 23, 2024
@dsuponitskiy dsuponitskiy added this to the Release 1.3.0 milestone Nov 23, 2024
@dsuponitskiy dsuponitskiy self-assigned this Nov 23, 2024
@yspolyakov
Copy link
Contributor

Please also add the same check for CKKS

@yspolyakov yspolyakov merged commit a3bd833 into tmp-dev Dec 12, 2024
25 of 26 checks passed
@dsuponitskiy dsuponitskiy deleted the 891-exception-when-bv-keyswitching-digit-size-is-32 branch December 13, 2024 02:44
@dsuponitskiy dsuponitskiy restored the 891-exception-when-bv-keyswitching-digit-size-is-32 branch December 13, 2024 02:45
@dsuponitskiy dsuponitskiy deleted the 891-exception-when-bv-keyswitching-digit-size-is-32 branch January 3, 2025 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throw an exception when the BV key switching digit size is 32 or higher
3 participants