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

#[repr(u8)]
pub enum Algorithm {
    Rsa2048,
    Rsa3072,
    Rsa4096,
    Ed25519,
    EcP224,
    EcP256,
    EcP384,
    EcP521,
    EcK256,
    EcBp256,
    EcBp384,
    EcBp512,
}
Expand description

Asymmetric algorithms (RSA or ECC)

Variants

Rsa2048

2048-bit RSA

Rsa3072

3072-bit RSA

Rsa4096

4096-bit RSA

Ed25519

Ed25519

EcP224

NIST P-224 (secp224r1)

EcP256

NIST P-256 (secp256r1, prime256v1)

EcP384

NIST P-384 (secp384r1)

EcP521

P-521 (secp521r1)

EcK256

secp256k1

EcBp256

brainpool256r1

EcBp384

brainpool384r1

EcBp512

brainpool512r1

Implementations

Convert an unsigned byte tag into an Algorithm (if valid)

Serialize algorithm ID as a byte

Return the size of the given key (as expected by the YubiHSM 2) in bytes

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.

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