High-level constructor that creates a CryptoContext with sensible
defaults. PKE, KEYSWITCH, and LEVELEDSHE features are enabled
automatically.
Usage
fhe_context(scheme = c("BFV", "BGV", "CKKS"), ..., features = NULL)Arguments
- scheme
Character: "BFV", "BGV", or "CKKS".
- ...
Scheme-specific
CCParamssetter arguments. Forwarded toBFVParams(),BGVParams(), orCKKSParams(). Example:fhe_context("BFV", plaintext_modulus = 65537, multiplicative_depth = 2)orfhe_context("CKKS", multiplicative_depth = 4, scaling_mod_size = 50, scaling_technique = ScalingTechnique$FLEXIBLEAUTO).- features
Additional
Featurevalues to enable on the context beyond the defaultPKE|KEYSWITCH|LEVELEDSHEtriple.
Details
All scheme-specific CCParams setter arguments are accepted via
... and forwarded to the appropriate per-scheme constructor
(BFVParams(), BGVParams(), or CKKSParams()). See those
functions' argument lists for the valid per-scheme setter surface
— each scheme accepts only the setters that are not disabled in
its upstream CCParams<T> specialization (see discovery D013).
Passing an invalid scheme-specific argument produces an R-level
"unused argument" error at the underlying *Params() call site.
