Enum yubihsm::algorithm::AuthAlg[][src]

#[repr(u8)]
pub enum AuthAlg { YUBICO_AES, }

Valid algorithms for auth keys

Variants

YubiHSM AES PSK authentication

Methods

impl AuthAlg
[src]

Convert an unsigned byte tag into an AuthAlgorithm (if valid)

Serialize algorithm ID as a byte

Return the size of the given key (as expected by the YubiHSM2) in bytes

Trait Implementations

impl Copy for AuthAlg
[src]

impl Clone for AuthAlg
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AuthAlg
[src]

Formats the value using the given formatter. Read more

impl Eq for AuthAlg
[src]

impl PartialEq for AuthAlg
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<AuthAlg> for Algorithm
[src]

Performs the conversion.

impl Serialize for AuthAlg
[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for AuthAlg
[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for AuthAlg

impl Sync for AuthAlg