PALISADE Lattice Crypto Library  1.11.9
A lattice crypto library for software engineers by software engineers.
Public Member Functions | Public Attributes | List of all members
lbcrypto::DecryptResult Struct Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ DecryptResult() [1/2]

lbcrypto::DecryptResult::DecryptResult ( )
inline

Constructor that initializes all message lengths to 0.

◆ DecryptResult() [2/2]

lbcrypto::DecryptResult::DecryptResult ( size_t  len)
inlineexplicit

Constructor that initializes all message lengths.

Parameters
lenthe new length.

Member Data Documentation

◆ isValid

bool lbcrypto::DecryptResult::isValid

whether the decryption was successful

◆ messageLength

usint lbcrypto::DecryptResult::messageLength

the length of the decrypted plaintext message


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