Enum yubihsm::algorithm::HmacAlg[][src]

#[repr(u8)]
pub enum HmacAlg { SHA1, SHA256, SHA384, SHA512, }

Valid algorithms for HMAC keys

Variants

hmac-sha1

hmac-sha256

hmac-sha384

hmac-sha512

Methods

impl HmacAlg
[src]

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

Serialize algorithm ID as a byte

Recommended key length (identical to output size)

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

Trait Implementations

impl Copy for HmacAlg
[src]

impl Clone for HmacAlg
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for HmacAlg
[src]

Formats the value using the given formatter. Read more

impl Eq for HmacAlg
[src]

impl PartialEq for HmacAlg
[src]

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

This method tests for !=.

impl From<HmacAlg> for Algorithm
[src]

Performs the conversion.

impl Serialize for HmacAlg
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for HmacAlg

impl Sync for HmacAlg