logo
#[repr(u8)]
pub enum Algorithm {
    Asymmetric(Algorithm),
    Authentication(Algorithm),
    Ecdh(Algorithm),
    Ecdsa(Algorithm),
    Hmac(Algorithm),
    Mgf(Algorithm),
    Opaque(Algorithm),
    Rsa(Algorithm),
    Template(Algorithm),
    Wrap(Algorithm),
    YubicoOtp(Algorithm),
}
Expand description

Cryptographic algorithm types supported by the YubiHSM 2

Variants

Asymmetric(Algorithm)

Asymmetric algorithms

Authentication(Algorithm)

YubiHSM 2 symmetric PSK authentication

Ecdh(Algorithm)

Elliptic Curve Diffie-Hellman (i.e. key exchange) algorithms

Ecdsa(Algorithm)

ECDSA algorithms

Hmac(Algorithm)

HMAC algorithms

Mgf(Algorithm)

RSA-PSS mask generating functions

Opaque(Algorithm)

Opaque data types

Rsa(Algorithm)

RSA algorithms (signing and encryption)

Template(Algorithm)

SSH template algorithms

Wrap(Algorithm)

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

YubicoOtp(Algorithm)

Yubico OTP algorithms

Implementations

Convert an unsigned byte into an Algorithm (if valid)

Serialize algorithm ID as a byte

Get asymmetric::Algorithm

Get authentication::Algorithm

Get ecdh::Algorithm

Get ecdsa::Algorithm

Get hmac::Algorithm

Get rsa::mgf::Algorithm

Get opaque::Algorithm

Get OtpAlg

Get rsa::Algorithm

Get template::Algorithm

Get wrap::Algorithm

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.