RadarFound by OpenFHE Radar· 4 follow

Throw for non-relinearized ciphertexts in relinearizing ops

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

tzasacky opened pull request #1422 to add error checking in EvalMult, EvalSquare, rotation, and BFV EvalRotate/EvalAtIndex operations. These operations silently returned wrong results when given ciphertexts with more than 2 elements. The CryptoContext wrappers pass only the relinearization key for s^2 to the scheme; given a 3-element ciphertext (e.g., from EvalMultNoRelin), the scheme computes the full tensor product, key switches only the third element, and drops the rest, producing wrong decryptions without error. The fix throws an exception and directs users to Relinearize() or EvalMultAndRelinearize(). Rotations had the same issue: LeveledSHEBase::EvalAutomorphism had the check, but LeveledSHEBFVRNS overrides it, and EvalFastRotation had no check. The fix adds the check to all affected operations.

2Maximum ciphertext elements allowed
#628Earlier partial fix for rotations

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-developmentReject BFV plaintext moduli of 2^37 and above for BEHZGitHub · openfheorg/openfhe-developmentInclude HYBRID digit term in BGV noise estimateGitHub · 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.