| bin_fhe_context | R Documentation |
Create a Binary FHE context
bin_fhe_context(
paramset = BinFHEParamSet$STD128,
method = BinFHEMethod$GINX,
arb_func = FALSE,
log_q = 11L,
n = 0L,
time_optimization = FALSE
)
paramset |
A BinFHEParamSet value (default: STD128) |
method |
A BinFHEMethod value (default: GINX) |
arb_func |
If TRUE, build a context that supports
arbitrary-function bootstrapping (EvalSign, EvalFunc). Supplying
any of |
log_q |
log2 of the large ciphertext modulus Q used by functional bootstrapping (default 11; use 17 for the eval-sign example). |
n |
Ring dimension override (0 lets OpenFHE pick). |
time_optimization |
Enable the GINX time-optimization variant. |
A BinFHEContext object.
The bootstrapping keys that bin_bt_key_gen() stores in a context
can occupy several gigabytes (about 5.8 GB for STD128 with
arb_func = TRUE and log_q = 12). R's garbage collector does not
see this memory, so removing a context with rm() does not release
it until a collection happens to run.
Build one context and reuse it. The keys depend only on the parameters and the secret key.
When a context is no longer needed, call bin_clear_bt_keys().
The keys are released at once.
To release the rest of the context, remove it and call gc().
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.