Bootstrapping parameters and residual parameters in CKKS. #495
-
For enough security, is it required that LogN must >= 16 in bootstrapping parameters? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
For enough security, is it required that LogN must >= 16 in bootstrapping parameters?Usually yes, because the bootstrapping circuit is around 800 bits (not taking into account the auxiliary modulus If you are unsure about the security, given a <bootstrapping.Parameters>.BootstrappingParameters.LogN()
<bootstrapping.Parameters>.BootstrappingParameters.LogQP()
<bootstrapping.Parameters>.BootstrappingParameters.Xs()
<bootstrapping.Parameters>.BootstrappingParameters.Xe() This will output the necessary information to run the lattice estimator to get a security estimation. Not that by default the secret Hamming weight of the bootstrapping parameters is Can the LogN in residual parameters be less than 16, when the LogN in bootstrapping is set to be 16?Yes Will a smaller LogN in residual parameters speed up the execution of bootstrapping?Not automatically. By default the bootstrapping circuit is configured to support the maximum number of slots enabled by the bootstrapping parameters (i.e. That being said, it is much more efficient to call |
Beta Was this translation helpful? Give feedback.
For enough security, is it required that LogN must >= 16 in bootstrapping parameters?
Usually yes, because the bootstrapping circuit is around 800 bits (not taking into account the auxiliary modulus$$P$$ ) and you want something usable afterward (the residual parameters). According to the lattice estimator, a ring degree of $$N=2^{15}$$ with a uniform ternary secret and an error distribution $$\sigma=3.2$$ can support a modulus of up to $$~881$$ bits for 128-bit security, hence why $$N=2^{16}$$ is usually chosen. It is possible to squeeze the bootstrapping parameters to $$N=2^{15}$$ and still remain 128-bit secure, but precision, residual parameters, hence overall throughput, will suffer …