PALISADE Lattice Crypto Library  1.11.9
A lattice crypto library for software engineers by software engineers.
Public Member Functions | List of all members
lbcrypto::LPAlgorithmNull< Element > Class Template Reference
Inheritance diagram for lbcrypto::LPAlgorithmNull< Element >:
Inheritance graph
[legend]
Collaboration diagram for lbcrypto::LPAlgorithmNull< Element >:
Collaboration graph
[legend]

Public Member Functions

 LPAlgorithmNull ()
 
Ciphertext< Element > Encrypt (const LPPublicKey< Element > pubKey, Element ptxt) const
 
Ciphertext< Element > Encrypt (const LPPrivateKey< Element > privKey, Element ptxt) const
 
DecryptResult Decrypt (const LPPrivateKey< Element > privateKey, ConstCiphertext< Element > ciphertext, NativePoly *plaintext) const
 
LPKeyPair< Element > KeyGen (CryptoContext< Element > cc, bool makeSparse=false)
 
- Public Member Functions inherited from lbcrypto::LPEncryptionAlgorithm< Element >
virtual DecryptResult Decrypt (const LPPrivateKey< Element > privateKey, ConstCiphertext< Element > ciphertext, Poly *plaintext) const
 

Constructor & Destructor Documentation

◆ LPAlgorithmNull()

template<class Element >
lbcrypto::LPAlgorithmNull< Element >::LPAlgorithmNull ( )
inline

Default constructor

Member Function Documentation

◆ Decrypt()

template<class Element >
DecryptResult lbcrypto::LPAlgorithmNull< Element >::Decrypt ( const LPPrivateKey< Element >  privateKey,
ConstCiphertext< Element >  ciphertext,
NativePoly plaintext 
) const
inlinevirtual

Method for decrypting plaintext using Null

Parameters
&privateKeyprivate key used for decryption.
&ciphertextciphertext id decrypted.
*plaintextthe plaintext output.
Returns
the decrypted plaintext returned.

Implements lbcrypto::LPEncryptionAlgorithm< Element >.

◆ Encrypt() [1/2]

template<class Element >
Ciphertext<Element> lbcrypto::LPAlgorithmNull< Element >::Encrypt ( const LPPublicKey< Element >  pubKey,
Element  ptxt 
) const
inlinevirtual

Method for encrypting plaintext using Null

Parameters
&publicKeypublic key used for encryption.
&plaintextthe plaintext input.
doEncryptionencrypts if true, embeds (encodes) the plaintext into cryptocontext if false
*ciphertextciphertext which results from encryption.

Implements lbcrypto::LPEncryptionAlgorithm< Element >.

◆ Encrypt() [2/2]

template<class Element >
Ciphertext<Element> lbcrypto::LPAlgorithmNull< Element >::Encrypt ( const LPPrivateKey< Element >  privKey,
Element  ptxt 
) const
inlinevirtual

Method for encrypting plaintext using Null

Parameters
&publicKeypublic key used for encryption.
&plaintextthe plaintext input.
doEncryptionencrypts if true, embeds (encodes) the plaintext into cryptocontext if false
*ciphertextciphertext which results from encryption.

Implements lbcrypto::LPEncryptionAlgorithm< Element >.

◆ KeyGen()

template<class Element >
LPKeyPair<Element> lbcrypto::LPAlgorithmNull< Element >::KeyGen ( CryptoContext< Element >  cc,
bool  makeSparse = false 
)
inlinevirtual

Function to generate public and private keys

Parameters
&publicKeyprivate key used for decryption.
&privateKeyprivate key used for decryption.
Returns
function ran correctly.

Implements lbcrypto::LPEncryptionAlgorithm< Element >.


The documentation for this class was generated from the following file: