openfheorg / openfhe-development

This is the development repository for the OpenFHE library. The current (stable) version is v1.2.0 (released on June 25, 2024).
BSD 2-Clause "Simplified" License
664 stars 171 forks source link

Automatically choose a plaintext modulus in BFV/BGV. #220

Open sarojaduality opened 1 year ago

sarojaduality commented 1 year ago

In order to use MakePackedPlaintext in BFV/BGV, a user needs to choose a prime plaintext modulus t = 1 (mod m). However, this is difficult to do currently because the user can choose the security level and have OpenFHE automatically choose m. Furthermore, the user needs some way to generate a prime congruent to 1 (mod m). This issue was inspired by this Discourse question.

yspolyakov commented 3 months ago

@dsuponitskiy Are you sure you want to address it in v1.1.5? Choosing the modulus automatically seems tricky to me.

dsuponitskiy commented 3 months ago

@yspolyakov I hoped that we could have it done along with parameter validation and seemed that we would have time for this. had been planning to talk about this issue. I guess i was wrong