Template Class HEDecryptor< Scheme::TFHE >
Defined in File decryptor.cuh
Class Documentation
-
template<>
class HEDecryptor<Scheme::TFHE> Public Functions
-
HEDecryptor(HEContext<Scheme::TFHE> &context, Secretkey<Scheme::TFHE> &secret_key)
Constructs a new HEDecryptor object for performing decryption operations in the TFHE scheme.
This constructor initializes the decryption context with the provided encryption parameters and the associated secret key. It enables decryption of ciphertexts that were previously encrypted under the same parameters and key.
-
inline void decrypt(Ciphertext<Scheme::TFHE> &ciphertext, std::vector<bool> &messages, const ExecutionOptions &options = ExecutionOptions())
Decrypts a TFHE ciphertext into a vector of boolean messages.
This function performs decryption of a given ciphertext using the TFHE scheme and writes the result into a boolean vector. Internally, it invokes the appropriate decryption kernel via the input storage manager, which handles any memory transfer or layout preparation needed for GPU decryption.
- Parameters:
ciphertext – Reference to the ciphertext to be decrypted.
messages – Reference to a vector that will hold the decrypted boolean values.
options – Optional execution options, including the CUDA stream to use. Defaults to
ExecutionOptions().
-
HEDecryptor(HEContext<Scheme::TFHE> &context, Secretkey<Scheme::TFHE> &secret_key)