Enum redact_crypto::CryptoError [−][src]
pub enum CryptoError {
InternalError {
source: Box<dyn Error + Send + Sync>,
},
FsIoError {
source: Error,
},
FileNotFound {
path: String,
},
NotFound,
CiphertextFailedVerification,
InvalidKeyLength {
expected: usize,
actual: usize,
},
NotDowncastable,
FilePathHasNoFileStem {
path: String,
},
FilePathIsInvalidUTF8,
NotDeserializableToBaseDataType,
Base64Decode {
source: DecodeError,
},
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
Error occurred while performing IO on the filesystem
Show 1 field
Fields of FsIoError
source: ErrorFile path given was not found
Show 1 field
Fields of FileNotFound
path: StringThe requested resource was not found
Ciphertext failed veri fication before decryption
Provided bytes are not the right length for the
Given value was not of the right type to be downcasted to the requested type
File path given has an invalid file name with no stem
Show 1 field
Fields of FilePathHasNoFileStem
path: StringFile path given was invalid UTF-8
Given bytes could not be serialized to a base data type
Error happened when decoding base64 string
Show 1 field
Fields of Base64Decode
source: DecodeErrorWrong nonce was provided during seal/unseal operation
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for CryptoErrorimpl Send for CryptoErrorimpl Sync for CryptoErrorimpl Unpin for CryptoErrorimpl !UnwindSafe for CryptoError