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

About the number of slots #5

Open
DylanWangWQF opened this issue May 2, 2021 · 1 comment
Open

About the number of slots #5

DylanWangWQF opened this issue May 2, 2021 · 1 comment

Comments

@DylanWangWQF
Copy link

Hi, I have a question about the parameter nslots in the code.
Usually, nslots = dim * dim, then we rotate the ciphertext with nslots.
But if we have the ciphertext with more slots, we cannot do the following operations like rotate.
For example, we have ctxt with 300 slots, but for our 16*16 matrix, we only need 256 slots. You know, in the BGV ciphertext, we cannot choose the exact slots in the ciphertext.

@DylanWangWQF
Copy link
Author

Hi, @K-miran . it seems that the number of slots in the ciphertext equals to HEmatpar.nslots. So for the 4*4, 16*16, 64*64 matrix, nslots can only be 16, 256, 4096? If we have the ciphertext with 300 slots for the 16*16 matrix, what should we do? I mean, in the following rotations on ciphertexts, we have to change all of the indexes and mappings? In this case, we have extra 44 slots.

Thanks in advance!

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

No branches or pull requests

1 participant