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,
BadSignature,
}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
A signature was not verifiable
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for CryptoError
impl Send for CryptoError
impl Sync for CryptoError
impl Unpin for CryptoError
impl !UnwindSafe for CryptoError
Blanket Implementations
fn type_id_compat(&self) -> TypeId
fn type_id_compat(&self) -> TypeId
TODO: once 1.33.0 is the minimum supported compiler version, remove Any::type_id_compat and use StdAny::type_id instead. https://github.com/rust-lang/rust/issues/27745 Read more
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more