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 711 forks source link

If poly_modulus_degree exceeds 32768 , an error will be reported #587

Closed CcoWzh closed 2 years ago

CcoWzh commented 2 years ago

you wrote "Recommended values are 1024, 2048, 4096, 8192, 16384, 32768, but it is also possible to go beyond this range." however, i try 1<<16(65,536),there is error:

terminate called after throwing an instance of 'std::invalid_argument'
  what():  non-standard poly_modulus_degree

my code is :

    EncryptionParameters parms(scheme_type::bfv);
    size_t poly_modulus_degree = 1<<16;
    parms.set_poly_modulus_degree(poly_modulus_degree);
    parms.set_coeff_modulus(CoeffModulus::BFVDefault(poly_modulus_degree));
    parms.set_plain_modulus(1024);

please help

WeiDaiWD commented 2 years ago

453

WeiDaiWD commented 2 years ago

Please check the other issue.

CcoWzh commented 2 years ago

Thank you, I appreciate your help!