Enum redact_crypto::CryptoError [−][src]
pub enum CryptoError {
InternalError {
source: Box<dyn Error + Send + Sync>,
},
NotFound {
source: Box<dyn Error + Send + Sync>,
},
CiphertextFailedVerification,
InvalidKeyLength {
expected: usize,
actual: usize,
},
InvalidSeedLength {
expected: usize,
actual: usize,
},
NotDowncastable,
NotDeserializableToBaseDataType,
WrongNonceType,
}Expand description
Error that wraps all possible errors out of the redact-crypto crate
Variants
Represents an error which occurred in some internal system
The requested resource was not found
Ciphertext failed veri fication before decryption
Provided bytes are not the right length for the key
Provided bytes are not the right length for the seed
Given value was not of the right type to be downcasted to the requested type
Given bytes could not be serialized to a base data type
Wrong nonce was provided during seal/unseal operation
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.