pub struct ReadKey {
pub encrypt_read: bool,
pub slot_number: u8,
}
Expand description
Detailed ATECC key slot read attributes
Fields§
§encrypt_read: bool
true = Reads from this slot will be encrypted using the procedure specified in the Read command using value of ‘slot_number’ to generate the encryption key. No input MAC is required. If this bit is true, then ‘is_secret’ from ‘SlotConfig’ struct must also be set. false = Clear text reads may be permitted, and the ‘slot_number’ field is irrelevant.
slot_number: u8
Valid range from 0 to 15. If 0 then this slot can be the source for the CheckMac copy operation. Do not use zero as a default. Do not set this field to zero unless the CheckMac copy operation is explicitly desired, regardless of any other read/write restrictions.
Trait Implementations§
impl Copy for ReadKey
Auto Trait Implementations§
impl Freeze for ReadKey
impl RefUnwindSafe for ReadKey
impl Send for ReadKey
impl Sync for ReadKey
impl Unpin for ReadKey
impl UnwindSafe for ReadKey
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