Enum ethers::signers::yubihsm::Algorithm[][src]

#[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)

Tuple Fields

Asymmetric algorithms

Authentication(Algorithm)

Tuple Fields

YubiHSM 2 symmetric PSK authentication

Ecdh(Algorithm)

Tuple Fields

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

Ecdsa(Algorithm)

Tuple Fields

ECDSA algorithms

Hmac(Algorithm)

Tuple Fields

HMAC algorithms

Mgf(Algorithm)

Tuple Fields

RSA-PSS mask generating functions

Opaque(Algorithm)

Tuple Fields

Opaque data types

Rsa(Algorithm)

Tuple Fields

RSA algorithms (signing and encryption)

Template(Algorithm)

Tuple Fields

SSH template algorithms

Wrap(Algorithm)

Tuple Fields

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

YubicoOtp(Algorithm)

Tuple Fields

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

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more