Enum rust_cryptoauthlib::WriteConfig[][src]

pub enum WriteConfig {
    Rfu,
    Always,
    PubInvalid,
    Never,
    Encrypt,
}

Detailed ATECC key slot write configuration

Variants

Rfu
Always

Clear text writes are always permitted on this slot. Slots set to always should never be used as key storage. Either 4 or 32 bytes may be written to this slot.

PubInvalid

If a validated public key is stored in the slot, writes are prohibited. Use Verify(Invalidate) to invalidate prior to writing. Do not use this mode unless slot contains a public key.

Never

Writes are never permitted on this slot using the Write command. Slots set to never can still be used as key storage.

Encrypt

Writes to this slot require a properly computed MAC, and the input data must be encrypted by the system with WriteKey using the encryption algorithm documented in the Write command description. 4-byte writes to this slot are prohibited.

Trait Implementations

impl Clone for WriteConfig[src]

impl Copy for WriteConfig[src]

impl Debug for WriteConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.