re_key_gen() makes a re-encryption key from one party's secret
key and another party's public key. With it, re_encrypt() turns a
ciphertext under the first party's key into one the second party
can decrypt, without decrypting it. The context needs
Feature$PRE.
Arguments
- cc
A
CryptoContext.- old_private_key
The
PrivateKeythe ciphertexts are currently encrypted under.- new_public_key
The
PublicKeyof the party who is to decrypt.- ct
A
Ciphertext.- eval_key
The
EvalKeyfromre_key_gen().- public_key
The
PublicKeyof the party the ciphertext is currently encrypted for, orNULL(default). It is used to re-randomize the result in the security modes that require it.
