Enum yubihsm::algorithm::Algorithm[][src]

#[repr(u8)]
pub enum Algorithm { Asymmetric(AsymmetricAlg), Auth(AuthAlg), Ecdsa(EcdsaAlg), Hmac(HmacAlg), Kex(KexAlg), Mgf(MgfAlg), Opaque(OpaqueAlg), Otp(OtpAlg), Rsa(RsaAlg), Template(TemplateAlg), Wrap(WrapAlg), }

Cryptographic algorithm types supported by the YubiHSM2

Variants

Asymmetric algorithms

YubiHSM2 PSK authentication

ECDSA algorithms

HMAC algorithms

Key exchange algorithms (i.e. Diffie-Hellman)

RSA-PSS mask generating functions

Opaque data types

Yubico OTP algorithms

RSA algorithms (signing and encryption)

SSH template algorithms

Object wrap (i.e. HSM-to-HSM encryption) algorithms

Methods

impl Algorithm
[src]

Convert an unsigned byte into an Algorithm (if valid)

Serialize algorithm ID as a byte

Get AsymmetricAlg

Get AuthAlg

Get EcdsaAlg

Get HmacAlg

Get KexAlg

Get MgfAlg

Get OpaqueAlg

Get OtpAlg

Get RsaAlg

Get TemplateAlg

Get WrapAlg

Trait Implementations

impl From<AsymmetricAlg> for Algorithm
[src]

Performs the conversion.

impl From<AuthAlg> for Algorithm
[src]

Performs the conversion.

impl From<EcdsaAlg> for Algorithm
[src]

Performs the conversion.

impl From<HmacAlg> for Algorithm
[src]

Performs the conversion.

impl From<KexAlg> for Algorithm
[src]

Performs the conversion.

impl From<MgfAlg> for Algorithm
[src]

Performs the conversion.

impl From<OpaqueAlg> for Algorithm
[src]

Performs the conversion.

impl From<OtpAlg> for Algorithm
[src]

Performs the conversion.

impl From<RsaAlg> for Algorithm
[src]

Performs the conversion.

impl From<TemplateAlg> for Algorithm
[src]

Performs the conversion.

impl From<WrapAlg> for Algorithm
[src]

Performs the conversion.

impl Copy for Algorithm
[src]

impl Clone for Algorithm
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Algorithm
[src]

Formats the value using the given formatter. Read more

impl Eq for Algorithm
[src]

impl PartialEq for Algorithm
[src]

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

This method tests for !=.

impl Serialize for Algorithm
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Algorithm

impl Sync for Algorithm