pub enum CryptoErrorKind {
NoPrivKey,
InvalidPadding,
InvalidKeyLength,
InvalidIvLength,
CipherError,
UnsupportedProtocol,
InvalidPrivParamsLength {
expected: usize,
actual: usize,
},
InvalidCiphertextLength {
length: usize,
block_size: usize,
},
}Expand description
Cryptographic error kinds (encryption/decryption).
Variants§
NoPrivKey
No privacy key available.
InvalidPadding
Invalid padding in decrypted data.
InvalidKeyLength
Invalid key length for cipher.
InvalidIvLength
Invalid IV length for cipher.
CipherError
Cipher operation failed.
UnsupportedProtocol
Unsupported privacy protocol.
InvalidPrivParamsLength
Invalid priv params length.
InvalidCiphertextLength
Ciphertext length not a multiple of block size.
Trait Implementations§
Source§impl Clone for CryptoErrorKind
impl Clone for CryptoErrorKind
Source§fn clone(&self) -> CryptoErrorKind
fn clone(&self) -> CryptoErrorKind
Returns a duplicate 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 CryptoErrorKind
impl Debug for CryptoErrorKind
Source§impl Display for CryptoErrorKind
impl Display for CryptoErrorKind
Source§impl PartialEq for CryptoErrorKind
impl PartialEq for CryptoErrorKind
impl Copy for CryptoErrorKind
impl Eq for CryptoErrorKind
impl StructuralPartialEq for CryptoErrorKind
Auto Trait Implementations§
impl Freeze for CryptoErrorKind
impl RefUnwindSafe for CryptoErrorKind
impl Send for CryptoErrorKind
impl Sync for CryptoErrorKind
impl Unpin for CryptoErrorKind
impl UnwindSafe for CryptoErrorKind
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