Struct rust_cryptoauthlib::EccKeyAttr[][src]

pub struct EccKeyAttr {
    pub is_private: bool,
    pub ext_sign: bool,
    pub int_sign: bool,
    pub ecdh_operation: bool,
    pub ecdh_secret_out: bool,
}
Expand description

Detailed ECC key attributes as stored in slot configuration

Fields

is_private: bool

true = The key slot contains an ECC private key and can be accessed only with the Sign, GenKey, and PrivWrite commands. false = The key slot does not contain an ECC private key and cannot be accessed with the Sign, GenKey, and PrivWrite commands. It may contain an ECC public key, a SHA key, or data.

ext_sign: bool

Slots containing private keys can never be read so the fields below are only valid if ‘is_private’ is true. false = External signatures of arbitrary messages are not enabled. true = External signatures of arbitrary messages are enabled.

int_sign: bool

false = Internal signatures of messages are not enabled. true = Internal signatures of messages generated by GenDig or GenKey are enabled.

ecdh_operation: bool

false = ECDH operation is not permitted for this key. true = ECDH operation is permitted for this key.

ecdh_secret_out: bool

false = ECDH master secret will be output in the clear. true = Master secret will be written into slot N+1. (Can only be set to true for even number slots and should always be false for odd number slots) This bit is ignored if ‘ecdh_operation’ is false.

Trait Implementations

impl Clone for EccKeyAttr[src]

fn clone(&self) -> EccKeyAttr[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for EccKeyAttr[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for EccKeyAttr[src]

fn default() -> Self[src]

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

impl Copy for EccKeyAttr[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

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

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V