Enum sunscreen::RuntimeError
source · [−]pub enum RuntimeError {
Show 18 variants
IRError(Error),
SealError(Error),
MissingRelinearizationKeys,
MissingGaloisKeys,
IncorrectCiphertextCount,
ParameterMismatch,
ArgumentMismatch {
expected: Vec<Type, Global>,
actual: Vec<Type, Global>,
},
ReturnMismatch {
expected: Vec<Type, Global>,
actual: Vec<Type, Global>,
},
TypeMismatch {
expected: Type,
actual: Type,
},
ReturnTypeMetadataError,
TooMuchNoise,
FheProgramRunError(FheProgramRunFailure),
FheTypeError(String),
ParamDeserializationError,
NoPlaintextData,
MalformedPlaintext,
BincodeError(String),
NotASealPlaintext,
}Expand description
Represents an error that can occur in this crate.
Variants
IRError(Error)
An issue with an FheProgram.
SealError(Error)
An error occurred in the SEAL library.
MissingRelinearizationKeys
Tried to run an Fhe Program that requires relinearization keys, but didn’t provide any.
MissingGaloisKeys
Tried to run an Fhe Program that requires Galois keys, but didn’t provide any.
IncorrectCiphertextCount
Returned when:
- The wrong number of ciphertexts were provided as parameters to an Fhe Program.
- The wrong number of ciphertexts were returned from an Fhe Program.
ParameterMismatch
An argument is incompatible with the parameters in the runtime.
ArgumentMismatch
Fields
The given arguments do not match the call signature of the FHE program.
ReturnMismatch
Fields
The given return types do not match the FHE program interface.
TypeMismatch
The given type does not match the expected.
ReturnTypeMetadataError
The vector indicating the number of ciphertexts in the return types isn’t the same length as the signature’s return type. Running valid FHE programs created by the Sunscreen compiler should never produce this error.
TooMuchNoise
Decryption failed because the cipher text had too much noise.
FheProgramRunError(FheProgramRunFailure)
Executing an Fhe Program failed.
FheTypeError(String)
This variant wraps some error specific to the representation of FheTypes. For example, a type encoding even numbers would return this if you pass an odd number.
ParamDeserializationError
Failed to deserialize bytes as a Params object.
NoPlaintextData
The given Plaintext had no data.
MalformedPlaintext
The given Plaintext had an incorrect array count.
BincodeError(String)
An error occurred when serializing/deserializing with bincode.
NotASealPlaintext
Called inner_as_seal_plaintext
on non-Seal plaintext.