Encrypt a value for Binary FHE
Arguments
- ctx
A BinFHE context
- sk
An LWEPrivateKey, or an LWEPublicKey to encrypt under the public key.
- message
Integer (0 or 1 for Boolean; larger for integer FHE)
- output
An element of BinFHEOutput (default:
BinFHEOutput$BOOTSTRAPPED). UseBinFHEOutput$LARGE_DIMtogether withmodfor the functional-bootstrapping path. With a public key the default isBinFHEOutput$SMALL_DIM, as in openfhe-python, which needs the switching key thatbin_bt_key_gen()generates.- p
Plaintext modulus (default: 4)
- mod
Optional large ciphertext modulus Q for the LARGE_DIM path. NULL (default) selects the standard small-modulus encrypt. A whole number of at most 2^53, or a string of decimal digits for a larger value.
