BFV encrypts and decrypts ciphertexts based on the RLWE cryptosystem (§B-3) with the sign of each term flipped in the encryption and decryption formula. Specifically, this is equivalent to the alternative version of the GLWE cryptosystem (§B-4.4) with . Thus, BFV’s encryption and decryption formulas are as follows:
Summary D-2.3 BFV Encryption and Decryption
Initial Setup:
, where plaintext modulus is either a prime () or a power of prime (), and ciphertext modulus . As for the coefficients of polynomial , they can be either binary (i.e., ) or ternary (i.e., ).
Encryption Input: , ,
Decryption Input:
(The noise gets eliminated by the rounding process)
Conditions for Correct Decryption:
# accounts for the plaintext ’s wrapped-around value as multiples of