-
Hi, for example, we have c1, c2, c3. c1 represents 10 elements, c2 represents 10 elements, c3 represents 10 elements. BR |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
-
Converting this to a discussion since this is not a question about Lattigo, but about about SIMD FHE schemes. |
Beta Was this translation helpful? Give feedback.
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.