#[non_exhaustive]pub enum Security {
Mode5,
Mode7,
Mode10,
EllCtr,
Other(u8),
}Expand description
How an encrypted layer is protected.
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.
Mode5
TPL mode 5: AES-128-CBC with a static key and an IV from address and access number.
Mode7
TPL mode 7: AES-128-CBC with a per-message key derived from the AFL counter.
Mode10
TPL mode 10: AES-128-CCM with a per-message key; the tag authenticates.
EllCtr
ELL: AES-128-CTR (CI 8D/8F).
Other(u8)
Any other TPL security mode (not decrypted by this crate).
Trait Implementations§
impl Copy for Security
impl Eq for Security
impl StructuralPartialEq for Security
Auto Trait Implementations§
impl Forget for Security
impl Freeze for Security
impl Move for Security
impl RefUnwindSafe for Security
impl Send for Security
impl Sync for Security
impl Unpin for Security
impl UnsafeUnpin for Security
impl UnwindSafe for Security
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