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

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

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.