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: boolIf 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: u8slot number where the key for encrypting transmission between chip and host is placed
aes_enabled: boolkdf_aes_enabled: boolecdh_output_protection: OutputProtectionStatekdf_output_protection: OutputProtectionStateTrait Implementations
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
impl RefUnwindSafe for ChipOptionsimpl Send for ChipOptionsimpl Sync for ChipOptionsimpl Unpin for ChipOptionsimpl UnwindSafe for ChipOptionsBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V