Skip to content

how to generate a new ciphertext based on a few existing ciphertexts #327

Answered by Pro7ech
macknight asked this question in Q&A
Discussion options

You must be logged in to vote

You will have to do:

Mask (multiply with a plaintext that encrypts 1 at the position to extract else zero) each c_i to create a new ciphertext c'_i which encrypts the value you want else zero.

Then rotate each c'_i to move the value to the desires slot.

Add all c'_i together and rescale.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@macknight
Comment options

Answer selected by macknight
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #326 on December 21, 2022 16:35.