Closed adolfommoyano closed 2 years ago
What does your encoding (stringSUM) look like exactly? Can you show a small example? Are the coefficients bounded in [0, plainModulus)
?
@kimlaine The hexadecimal string looks like 696C1758E157438EF9C7DD4867CBE5F01453E5C0FE53CCF287CDB5D9842B45DA. PlainModulus is: parms.PlainModulus = new Modulus(1024). How should I set it? What is the maximum value?
Note that the Modulus(1024) sets the modulus to be literally 1024 -- not 1024 bits. The plainModulus can be at most 60 bits, but even such a large one is pretty impractical to use. There used to be a hacky way in SEAL to do arithmetic on such large integers, but this was removed due to serious usability problems. There are some other better ways, but these are not implemented by any library since there aren't (m)any applications.
Note that the Modulus(1024) sets the modulus to be literally 1024 -- not 1024 bits. The plainModulus can be at most 60 bits, but even such a large one is pretty impractical to use. There used to be a hacky way in SEAL to do arithmetic on such large integers, but this was removed due to serious usability problems. There are some other better ways, but these are not implemented by any library since there aren't (m)any applications.
Okey, thanks!
Hi,
I need to sum a cyphertext with a 256 bit number (256Big in my code). As the Plaintext only accepts an hexadecimal string parameter I am trying the following:
Output:
Any solutions?
Thanks in advice