|
| 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) |
|
virtual DecryptResult | Decrypt (const LPPrivateKey< Element > privateKey, ConstCiphertext< Element > ciphertext, Poly *plaintext) const |
|
◆ LPAlgorithmNull()
◆ Decrypt()
Method for decrypting plaintext using Null
- Parameters
-
&privateKey | private key used for decryption. |
&ciphertext | ciphertext id decrypted. |
*plaintext | the 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
-
&publicKey | public key used for encryption. |
&plaintext | the plaintext input. |
doEncryption | encrypts if true, embeds (encodes) the plaintext into cryptocontext if false |
*ciphertext | ciphertext 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
-
&publicKey | public key used for encryption. |
&plaintext | the plaintext input. |
doEncryption | encrypts if true, embeds (encodes) the plaintext into cryptocontext if false |
*ciphertext | ciphertext which results from encryption. |
Implements lbcrypto::LPEncryptionAlgorithm< Element >.
◆ KeyGen()
Function to generate public and private keys
- Parameters
-
&publicKey | private key used for decryption. |
&privateKey | private key used for decryption. |
- Returns
- function ran correctly.
Implements lbcrypto::LPEncryptionAlgorithm< Element >.
The documentation for this class was generated from the following file: