Struct DecryptResult
Defined in File decrypt-result.h
Page Contents
Struct Documentation
-
struct lbcrypto::DecryptResult
Collaboration diagram for lbcrypto::DecryptResult:
![digraph {
graph [bgcolor="#00000000"]
node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2]
edge [color="#1414CE"]
"3" [label="lbcrypto::BigIntegerInterface< NativeIntegerT< NativeInt > >" tooltip="lbcrypto::BigIntegerInterface< NativeIntegerT< NativeInt > >"]
"2" [label="intnat::NativeIntegerT< NativeInt >" tooltip="intnat::NativeIntegerT< NativeInt >"]
"1" [label="lbcrypto::DecryptResult" tooltip="lbcrypto::DecryptResult" fillcolor="#BFBFBF"]
"2" -> "3" [dir=forward tooltip="public-inheritance"]
"1" -> "2" [dir=forward tooltip="usage"]
}](../_images/graphviz-be532bd034cb8215d66388f7c625d60ba55a641a.png)
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
-
DecryptResult() = default
Constructor that initializes all message lengths to 0.
-
inline explicit DecryptResult(uint32_t len)
Constructor that initializes all message lengths.
- Parameters
len – the new length.
-
inline DecryptResult(uint32_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
-
uint32_t messageLength
the length of the decrypted plaintext message
-
NativeInteger scalingFactorInt = {1}
Scaling factor for BGV FlexibleAuto mode.
-
DecryptResult() = default