pub enum Authenticity {
None,
Encrypted,
Authenticated {
counter: u32,
},
}Expand description
What was cryptographically verified about a telegram. Only
Authenticity::Authenticated makes a radio reading evidence.
Variants§
None
Nothing: plaintext, or still encrypted. Anyone in radio range can send this.
Encrypted
Decrypted with the meter’s key (mode 5, ELL, or mode 7 without a MAC):
confidential, but not integrity-protected. These modes are malleable: without
the key, an attacker can change bits of the plaintext through the IV inputs in the
header (mode 5) or the CTR ciphertext with a fixed-up CRC (ELL), and 2F 2F and the
payload CRC still pass. And anyone holding the key, often shared by a fleet, can
send anything. Not evidence of a reading.
Authenticated
The AFL CMAC was verified with the key derived for this message (mode 7).
Trait Implementations§
Source§impl Clone for Authenticity
impl Clone for Authenticity
impl Copy for Authenticity
Source§impl Debug for Authenticity
impl Debug for Authenticity
impl Eq for Authenticity
Source§impl PartialEq for Authenticity
impl PartialEq for Authenticity
impl StructuralPartialEq for Authenticity
Auto Trait Implementations§
impl Forget for Authenticity
impl Freeze for Authenticity
impl Move for Authenticity
impl RefUnwindSafe for Authenticity
impl Send for Authenticity
impl Sync for Authenticity
impl Unpin for Authenticity
impl UnsafeUnpin for Authenticity
impl UnwindSafe for Authenticity
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