Compress BFV ciphertext


I’m wondering if the Compress method supports BFVRNS? I called the Compress method on a BFV-encrypted ciphertext, but it throws openfhe-development/src/pke/include/schemerns/rns-leveledshe.h:316 ModReduceInternalInPlace is not supported for this scheme.


Hi @somnus

I just looked at the code. It is true that Compress is not currently supported for BFVrns, but there is no reason why we should not support it for the scenario when all computations are completed and the ciphertext needs to be compressed before being sent to the party that can decrypt it. I will create an issue for this.

1 Like

Added an issue for it: Add BFV support for Compress · Issue #341 · openfheorg/openfhe-development · GitHub