BGV parameters.SetMultiplicativeDepth();

My question is the following:
How high can i set the multiplicative depth for the BGVRNS scheme?

Currently i am at 21,
if i set the value to 22 i get a config error from the library.

My current parameters are:

CCParams<CryptoContextBGVRNS> parameters;
parameters.SetMultiplicativeDepth(21);
parameters.SetPlaintextModulus(plaintextModulus);  //47030924089 536903681
// should replace the modReduce() call after every evalMult() call
parameters.SetScalingTechnique(FLEXIBLEAUTOEXT);

CryptoContext<DCRTPoly> cryptoContext = GenCryptoContext(parameters);
// Enable features that you wish to use
cryptoContext->Enable(PKE);
cryptoContext->Enable(KEYSWITCH);
cryptoContext->Enable(LEVELEDSHE);
cryptoContext->Enable(ADVANCEDSHE);

Could you include the full list of parameters so I could try your configuration? What is plaintextModulus set to? Thanks

1 Like