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,
    pub kdf_iv_enabled: bool,
    pub kdf_iv_location_at: usize,
    pub kdf_iv_str: [u8; 2],
}
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

flag, on-chip availability, AES function

kdf_aes_enabled: bool

flag, on-chip availability, AES functionality for KDF command

ecdh_output_protection: OutputProtectionState

restrictions on the way the ECDH command result can be used

kdf_output_protection: OutputProtectionState

restrictions on the way the KDF command result can be used

kdf_iv_enabled: bool

availability flag of the special function of the IV KDF command

kdf_iv_location_at: usize

place in message where special data bytes must be placed when calling function IV of the KDF command

kdf_iv_str: [u8; 2]

two bytes of data that must be included in message when calling function IV of the KDF command

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)

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.