pub enum AlgorithmError {
UnsupportedAlgorithm(Algorithm),
UnsupportedAeadAlgorithm(AeadAlgorithm),
UnsupportedHashAlgorithm(HashAlgorithm),
UnsupportedMacAlgorithm(MacAlgorithm),
InvalidKey(Algorithm),
SignatureInvalid(Algorithm),
Crypto(CryptoError),
}Expand description
Error returned by algorithm dispatch operations.
Variants§
UnsupportedAlgorithm(Algorithm)
The requested operation is not supported for this algorithm.
UnsupportedAeadAlgorithm(AeadAlgorithm)
The requested AEAD algorithm is not supported.
UnsupportedHashAlgorithm(HashAlgorithm)
The requested hash algorithm is not supported.
UnsupportedMacAlgorithm(MacAlgorithm)
The requested MAC algorithm is not supported.
InvalidKey(Algorithm)
The supplied key is malformed or invalid for the algorithm.
SignatureInvalid(Algorithm)
A signature failed verification (dispatch fails closed here).
Crypto(CryptoError)
An error propagated from an underlying crypto primitive.
Trait Implementations§
Source§impl Debug for AlgorithmError
impl Debug for AlgorithmError
Source§impl Display for AlgorithmError
impl Display for AlgorithmError
Source§impl Error for AlgorithmError
impl Error for AlgorithmError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<CryptoError> for AlgorithmError
impl From<CryptoError> for AlgorithmError
Source§fn from(source: CryptoError) -> Self
fn from(source: CryptoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AlgorithmError
impl RefUnwindSafe for AlgorithmError
impl Send for AlgorithmError
impl Sync for AlgorithmError
impl Unpin for AlgorithmError
impl UnsafeUnpin for AlgorithmError
impl UnwindSafe for AlgorithmError
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