Struct rust_cryptoauthlib::ChipOptions[][src]

pub struct ChipOptions {
    pub io_key_enabled: bool,
    pub io_key_in_slot: u8,
    pub aes_enabled: bool,
    pub kdf_aes_enabled: bool,
    pub ecdh_output_protection: OutputProtectionState,
    pub kdf_output_protection: OutputProtectionState,
}
Expand description

structure that stores data for options supported by the chip

Fields

io_key_enabled: bool

If true, then the protection functions are enabled via the secret key stored in the slot indicated by io_key_in_slot. If false, the security functions are disabled and fields ‘io_key_in_slot’, ‘ecdh_output_protection’ and ‘kdf_output_protection’ are irrelevant (only relevant for the ATECC608x chip)

io_key_in_slot: u8

slot number where the key for encrypting transmission between chip and host is placed

aes_enabled: bool
kdf_aes_enabled: bool
ecdh_output_protection: OutputProtectionState
kdf_output_protection: OutputProtectionState

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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)

recently added

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.