Enum yubihsm::algorithm::OtpAlg[][src]

#[repr(u8)]
pub enum OtpAlg { AES128, AES192, AES256, }

Valid algorithms for Yubico OTP (AES-based one time password) keys

Variants

Yubico OTP using AES-128

Yubico OTP using AES-192

Yubico OTP using AES-256

Methods

impl OtpAlg
[src]

Convert an unsigned byte tag into an OtpAlgorithm (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 OtpAlg
[src]

impl Clone for OtpAlg
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for OtpAlg
[src]

Formats the value using the given formatter. Read more

impl Eq for OtpAlg
[src]

impl PartialEq for OtpAlg
[src]

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

This method tests for !=.

impl From<OtpAlg> for Algorithm
[src]

Performs the conversion.

impl Serialize for OtpAlg
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for OtpAlg

impl Sync for OtpAlg