#[non_exhaustive]pub enum Check {
Marker,
Mac,
PayloadCrc,
Length,
MissingCounter,
FullFrameCrc,
Tag,
}Expand description
Which cryptographic check failed. Says nothing about the key (constitution IV).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Marker
The decrypted payload does not start with 2F 2F (wrong key, or tampered).
Mac
The AFL message authentication code does not match, or the message control announces one that is missing.
PayloadCrc
The ELL payload CRC over the decrypted payload does not match.
Length
The encrypted part is not a whole number of 16-byte blocks, or shorter than the configuration field announces.
MissingCounter
Security mode 7 without the AFL message counter the key derivation needs.
FullFrameCrc
The records rebuilt from a compact frame do not match its full-frame CRC.
Tag
The AES-CCM tag of a mode-10 telegram does not match.
Trait Implementations§
impl Copy for Check
impl Eq for Check
impl StructuralPartialEq for Check
Auto Trait Implementations§
impl Forget for Check
impl Freeze for Check
impl Move for Check
impl RefUnwindSafe for Check
impl Send for Check
impl Sync for Check
impl Unpin for Check
impl UnsafeUnpin for Check
impl UnwindSafe for Check
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