View source: R/scheme-switching.R
| eval_fhew_to_ckks_setup | R Documentation |
Packs the messages of a list of FHEW (LWE) ciphertexts into the
slots of one CKKS ciphertext (CKKS with real data and
Feature$SCHEMESWITCH).
eval_fhew_to_ckks_setup(cc, cc_lwe, num_slots_ckks = 0L, log_q = 25L)
eval_fhew_to_ckks_key_gen(
cc,
key_pair,
lwesk,
num_slots = 0L,
num_ctxts = 0L,
dim1 = 0L,
l = 0L
)
eval_fhew_to_ckks(
cc,
lwe_ciphertexts,
num_ctxts = 0L,
num_slots = 0L,
p = 4L,
pmin = 0,
pmax = 2,
dim1 = 0L
)
cc |
A CKKS |
cc_lwe |
The |
num_slots_ckks, num_slots |
Integer; number of CKKS slots, |
log_q |
Integer; bits of the FHEW ciphertext modulus. Default
|
key_pair |
The |
lwesk |
The |
num_ctxts |
Integer; number of ciphertexts to switch, |
dim1 |
Integer; baby-step dimension of the linear transform,
|
l |
Integer; level of the linear transform (the C++ argument
|
lwe_ciphertexts |
A list of |
p |
Integer; plaintext modulus of the FHEW ciphertexts.
Default |
pmin, pmax |
Numeric; the range of the messages. Defaults |
eval_fhew_to_ckks_setup() records the FHEW context cc_lwe in the
CKKS context, and eval_fhew_to_ckks_key_gen() generates the keys
of the switch.
The messages are taken modulo p; pmin and pmax give the range
they lie in, which sets the interval of the Chebyshev approximation
the switch evaluates. The defaults are for bits.
eval_fhew_to_ckks(): a Ciphertext. The others: cc,
invisibly.
eval_ckks_to_fhew()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.