-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(integer): rotations/shifts < 2 blocks
This commit fixes a few bugs * The shift/rotate functions used when blocks encrypt a number of bits that is a power of 2 was causing a panic when working on one block. - Also, when the number of blocks was low (e.g 2 blocks with 2_2 params) a noise cleaning step was wrongly skipped * The function used when blocks encrypt non power of 2 number of bits also had a problem The test have been updated to test with different block sizes and check the noise level Overall these bugs only affected low block counts (e.g FheUint2, FheUint4) ciphertexts
- Loading branch information
Showing
3 changed files
with
313 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.