pub enum CipherError {
InvalidSystemTitle,
InvalidKey,
Truncated,
AuthenticationFailed,
CryptoError,
ReplayDetected,
InvocationCounterExhausted,
}Expand description
Errors from ciphering / deciphering.
Variants§
InvalidSystemTitle
The system title was not 8 octets.
InvalidKey
The encryption key was not 16 or 32 octets.
Truncated
The ciphered APDU was too short for its security header.
AuthenticationFailed
The authentication tag did not verify.
CryptoError
The AES-GCM engine reported an error.
ReplayDetected
The received invocation counter did not increase past the last one accepted from this peer (a replayed or reordered-backward APDU).
InvocationCounterExhausted
The invocation counter has reached its maximum value and cannot be used to protect another APDU without re-keying.
Trait Implementations§
Source§impl Debug for CipherError
impl Debug for CipherError
Source§impl Display for CipherError
impl Display for CipherError
impl Eq for CipherError
Source§impl Error for CipherError
impl Error for CipherError
1.30.0 · 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<CipherError> for SessionError
impl From<CipherError> for SessionError
Source§fn from(e: CipherError) -> Self
fn from(e: CipherError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CipherError
impl PartialEq for CipherError
impl StructuralPartialEq for CipherError
Auto Trait Implementations§
impl Freeze for CipherError
impl RefUnwindSafe for CipherError
impl Send for CipherError
impl Sync for CipherError
impl Unpin for CipherError
impl UnsafeUnpin for CipherError
impl UnwindSafe for CipherError
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