| gen_crypto_context | R Documentation |
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.
gen_crypto_context(params)
params |
A |
A CryptoContext with no feature enabled.
fhe_context(), enable_feature(), ccparams_setters
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.