The counterpart of OpenFHE's GenCryptoContext(parameters). It
returns the context with no feature enabled; call
enable_feature() for each feature the computation needs, as the
OpenFHE examples do. fhe_context() does both steps in one call
and enables the three features most computations use.
Examples
p <- BFVParams()
set_plaintext_modulus(p, 65537)
set_multiplicative_depth(p, 2L)
cc <- gen_crypto_context(p)
enable_feature(cc, Feature$PKE)
enable_feature(cc, Feature$KEYSWITCH)
enable_feature(cc, Feature$LEVELEDSHE)
ring_dimension(cc)
#> [1] 8192
