Struct DecryptResult
Defined in File decrypt-result.h
Page Contents
Struct Documentation
-
struct lbcrypto::DecryptResult
Collaboration diagram for lbcrypto::DecryptResult:
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 received, decoding/decryption can be performed eventually. This is intended to be returned with the output of a decryption operation.
Public Functions
-
inline DecryptResult()
Constructor that initializes all message lengths to 0.
-
inline explicit DecryptResult(size_t len)
Constructor that initializes all message lengths.
- Parameters
len – the new length.
-
inline explicit DecryptResult(size_t len, NativeInteger scf)
Constructor that initializes all message lengths.
- Parameters
len – the new length.
scf – the new scaling factor.
Public Members
-
bool isValid
whether the decryption was successful
-
NativeInteger scalingFactorInt
Scaling factor for BGV FlexibleAuto mode.
-
inline DecryptResult()