Generate BinFHE bootstrapping keys
Arguments
- ctx
A BinFHE context
- sk
An LWEPrivateKey
- keygen_mode
Integer from KeygenMode; controls whether the bootstrapping keys are generated under symmetric-key encryption (
KeygenMode$SYM_ENCRYPT, the default and the C++ default perbinfhe-constants.hline 133) or public-key encryption (KeygenMode$PUB_ENCRYPT), matching theBTKeyGen(sk, keyGenMode)overload atbinfhecontext.hline 273.
Value
Invisibly, the ctx BinFHE context that was passed in. Called for
its side effect: the bootstrapping and key-switching keys are
generated and stored inside the C++ context, after which
eval_bin_gate() and the other gate evaluations can be used.
