Reject BFV plaintext moduli of 2^37 and above for BEHZ
Nov 30 find · published Nov 24tzasacky opened pull request #1425 to reject plaintext moduli t ≥ 2^37 in BEHZ decryption, where 64-bit overflow in computing t*gamma causes all decryptions to fail.
tzasacky opened pull request #1425 to reject BFV plaintext moduli t ≥ 2^37 in BEHZ decryption. The BEHZ scheme accumulates values modulo t*gamma (where gamma = 2^26) using 64-bit arithmetic, but ModMulFastConst returns results through a signed 64-bit value, correct only below 2^63. For t ≥ 2^37, the product t*gamma wraps in 64 bits, causing every decryption—even of fresh ciphertexts—to return wrong plaintexts. The fix checks that t*gamma < 2^63 when BEHZ tables are precomputed and throws otherwise, directing users to HPS variants that support larger plaintext moduli. This prevents silent decryption failures.
Comments
Sign in to join the conversation.