PALISADE Lattice Crypto Library
1.11.9
A lattice crypto library for software engineers by software engineers.
|
PRE scheme based on Null. More...
#include <nullscheme.h>
Public Member Functions | |
LPAlgorithmPRENull () | |
LPEvalKey< Element > | ReKeyGen (const LPPublicKey< Element > newPrivateKey, const LPPrivateKey< Element > origPrivateKey) const |
Ciphertext< Element > | ReEncrypt (const LPEvalKey< Element > evalKey, ConstCiphertext< Element > ciphertext, const LPPublicKey< Element > publicKey=nullptr) const |
PRE scheme based on Null.
Element | a ring element. |
|
inline |
Default constructor
|
inlinevirtual |
Function to define the interface for re-encypting ciphertext using the array generated by ProxyGen
&evalKey | the evaluation key. |
&ciphertext | the input ciphertext. |
publicKey | the public key of the recipient of the re-encrypted ciphertext. |
*newCiphertext | the new ciphertext. |
Implements lbcrypto::LPPREAlgorithm< Element >.
|
inlinevirtual |
Function to generate 1..log(q) encryptions for each bit of the original private key Variant that uses the public key for the new secret key.
&newPrivateKey | encryption key for the new ciphertext. |
&origPrivateKey | original private key used for decryption. |
&ddg | discrete Gaussian generator. |
*evalKey | the evaluation key. |
Implements lbcrypto::LPPREAlgorithm< Element >.