Template Class HEKeyGenerator< Scheme::TFHE >

Class Documentation

template<>
class HEKeyGenerator<Scheme::TFHE>

Public Functions

HEKeyGenerator(HEContext<Scheme::TFHE> context)

Initializes a key generator for the TFHE scheme.

Sets up internal state using the given encryption context.

Parameters:

context – TFHE encryption context.

void generate_secret_key(Secretkey<Scheme::TFHE> &sk, const ExecutionOptions &options = ExecutionOptions())

Generates a TFHE secret key.

Writes the result to the provided sk object.

Parameters:
  • sk – Output secret key.

  • options – Optional CUDA execution settings.

void generate_bootstrapping_key(Bootstrappingkey<Scheme::TFHE> &bk, Secretkey<Scheme::TFHE> &sk, const ExecutionOptions &options = ExecutionOptions())

Generates a TFHE bootstrapping key and key switching key under the Bootstrappingkey.

Uses the given secret key and writes the result to bk.

Parameters:
  • bk – Output bootstrapping key.

  • sk – Input secret key.

  • options – Optional CUDA execution settings.