PALISADE Lattice Crypto Library
1.11.9
A lattice crypto library for software engineers by software engineers.
|
Decryption result. This represents whether the decryption of a cipheretext was performed correctly. More...
#include <pubkeylp.h>
Public Member Functions | |
DecryptResult () | |
DecryptResult (size_t len) | |
Public Attributes | |
bool | isValid |
usint | messageLength |
Decryption result. This represents whether the decryption of a cipheretext was performed correctly.
This is intended to eventually incorporate information about the amount of padding in a decoded ciphertext, to ensure that the correct amount of padding is stripped away. It is intended to provided a very simple kind of checksum eventually. This notion of a decoding output is inherited from the crypto++ library. It is also intended to be used in a recover and restart robust functionality if not all ciphertext is recieved over a lossy channel, so that if all information is eventually recieved, decoding/decryption can be performed eventually. This is intended to be returned with the output of a decryption operation.
|
inline |
Constructor that initializes all message lengths to 0.
|
inlineexplicit |
Constructor that initializes all message lengths.
len | the new length. |
bool lbcrypto::DecryptResult::isValid |
whether the decryption was successful
usint lbcrypto::DecryptResult::messageLength |
the length of the decrypted plaintext message