openfhe-development icon indicating copy to clipboard operation
openfhe-development copied to clipboard

Automatically choose a plaintext modulus in BFV/BGV.

Open sarojaduality opened this issue 2 years ago • 2 comments

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.

sarojaduality avatar Nov 02 '22 18:11 sarojaduality

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

yspolyakov avatar Apr 16 '24 02:04 yspolyakov

@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

dsuponitskiy avatar Apr 16 '24 02:04 dsuponitskiy