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.
re_key_gen(cc, old_private_key, new_public_key)re_encrypt(ct, eval_key, public_key = NULL)
re_key_gen() returns an EvalKey; re_encrypt() a
Ciphertext.
A CryptoContext.
The PrivateKey the ciphertexts are
currently encrypted under.
The PublicKey of the party who is to
decrypt.
A Ciphertext.
The EvalKey from re_key_gen().
The PublicKey of the party the ciphertext is
currently encrypted for, or NULL (default). It is used to
re-randomize the result in the security modes that require it.