microsoft / SEAL

Microsoft SEAL is an easy-to-use and powerful homomorphic encryption library.
https://www.microsoft.com/en-us/research/group/cryptography-research/
MIT License
3.62k stars 709 forks source link

How can I set the value of plain_modulus is CKKS? #641

Open lnazabal001 opened 1 year ago

lnazabal001 commented 1 year ago

Hello, I need to have an specific plain_modulus in a code, and whenever I try to change it and set a value it says that it is not allowed for CKKS. How can I change that? Is there a way to set the other parameters in order to give the plain_modulus a certain value? Thank you

sherry-yxs commented 1 year ago

According to my understanding, CKKS scheme does not need to set plain_modulus. Both CKKS ciphertext and plaintext use same RNS component. Please refer source code in example 2_encoders.cpp or CKKS encoding scheme.