Enum wamu_core::CryptoError
source · pub enum CryptoError {
InvalidSignature,
InvalidVerifyingKey,
SchemeMismatch,
UnsupportedScheme,
UnsupportedDigest,
UnsupportedEncoding,
}
Expand description
A low-level cryptography error.
Variants§
InvalidSignature
An invalid signature for the message.
InvalidVerifyingKey
An invalid verifying key.
SchemeMismatch
A signature algorithm and/or elliptic curve mismatch between the verifying key and signature.
UnsupportedScheme
An unsupported cryptographic scheme algorithm (e.g unsupported combination of signature algorithm and elliptic curve).
UnsupportedDigest
An unsupported hash function.
UnsupportedEncoding
An unsupported encoding standard (e.g for either the verifying key or the signature).
Trait Implementations§
source§impl Clone for CryptoError
impl Clone for CryptoError
source§fn clone(&self) -> CryptoError
fn clone(&self) -> CryptoError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CryptoError
impl Debug for CryptoError
source§impl From<CryptoError> for Error
impl From<CryptoError> for Error
source§fn from(error: CryptoError) -> Self
fn from(error: CryptoError) -> Self
Converts to this type from the input type.
source§impl From<CryptoError> for IdentityAuthedRequestError
impl From<CryptoError> for IdentityAuthedRequestError
source§fn from(error: CryptoError) -> Self
fn from(error: CryptoError) -> Self
Converts to this type from the input type.
source§impl From<CryptoError> for QuorumApprovedRequestError
impl From<CryptoError> for QuorumApprovedRequestError
source§fn from(error: CryptoError) -> Self
fn from(error: CryptoError) -> Self
Converts to this type from the input type.
source§impl PartialEq<CryptoError> for CryptoError
impl PartialEq<CryptoError> for CryptoError
source§fn eq(&self, other: &CryptoError) -> bool
fn eq(&self, other: &CryptoError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CryptoError
impl Eq for CryptoError
impl StructuralEq for CryptoError
impl StructuralPartialEq for CryptoError
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more