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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.