Enum yubihsm::hmac::Algorithm [−][src]
#[repr(u8)]
pub enum Algorithm {
Sha1,
Sha256,
Sha384,
Sha512,
}
Expand description
Valid algorithms for HMAC keys
Variants
Sha1
hmac-sha1
Sha256
hmac-sha256
Sha384
hmac-sha384
Sha512
hmac-sha512
Implementations
Convert an unsigned byte tag into an Algorithm
(if valid)
Return the size of the given key (as expected by the YubiHSM 2
) in bytes
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations
Mutably borrows from an owned value. Read more