Enum yubihsm::algorithm::WrapAlg[][src]

#[repr(u8)]
pub enum WrapAlg { AES128_CCM, AES192_CCM, AES256_CCM, }

Valid algorithms for "wrap" (symmetric encryption/key wrapping) keys

Variants

AES-128 in Counter with CBC-MAC (CCM) mode

AES-192 in Counter with CBC-MAC (CCM) mode

AES-256 in Counter with CBC-MAC (CCM) mode

Methods

impl WrapAlg
[src]

Convert an unsigned byte tag into a WrapAlgorithm (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 WrapAlg
[src]

impl Clone for WrapAlg
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for WrapAlg
[src]

Formats the value using the given formatter. Read more

impl Eq for WrapAlg
[src]

impl PartialEq for WrapAlg
[src]

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

This method tests for !=.

impl From<WrapAlg> for Algorithm
[src]

Performs the conversion.

impl Serialize for WrapAlg
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for WrapAlg

impl Sync for WrapAlg