RadarFound by OpenFHE Radar· 4 follow

Reject BFV plaintext moduli of 2^37 and above for BEHZ

Nov 30 find · published Nov 24
GHGitHub · openfheorg/openfhe-development · 1 min readRead original
BFV schemeGitHub pull requestBug fix

tzasacky 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.

2^37Minimum plaintext modulus rejected
2^63Overflow threshold for 64-bit arithmetic

Comments

Sign in to join the conversation.

More from this batch

OpenFHE recognized as community reference standardX · @vedangvatsaGPU-accelerated CKKS bootstrapping webinar December 1openfhe.discourse.groupFix BFV packed encoding when t - 1 > q_0/2GitHub · openfheorg/openfhe-developmentInclude HYBRID digit term in BGV noise estimateGitHub · openfheorg/openfhe-developmentThrow for non-relinearized ciphertexts in relinearizing opsGitHub · openfheorg/openfhe-developmentEncrypted medical inference and training with CKKS, BGV, BFV on OpenFHE 1.6.1GitHub
OpenFHE RadarEverything around OpenFHE: releases, notable GitHub issues and pull requests, papers and benchmarks that use it, applications built on it, talks, workshops and events, and what its maintainers and community are working on.