Enum webauthn_rs::proto::COSEAlgorithm[][src]

pub enum COSEAlgorithm {
    ES256,
    ES384,
    ES512,
    RS256,
    RS384,
    RS512,
    PS256,
    PS384,
    PS512,
    EDDSA,
    INSECURE_RS1,
}
Expand description

A COSE signature algorithm, indicating the type of key and hash type that should be used. You shouldn’t need to alter or use this value.

Variants

ES256

Identifies this key as ECDSA (recommended SECP256R1) with SHA256 hashing

ES384

Identifies this key as ECDSA (recommended SECP384R1) with SHA384 hashing

ES512

Identifies this key as ECDSA (recommended SECP521R1) with SHA512 hashing

RS256

Identifies this key as RS256 aka RSASSA-PKCS1-v1_5 w/ SHA-256

RS384

Identifies this key as RS384 aka RSASSA-PKCS1-v1_5 w/ SHA-384

RS512

Identifies this key as RS512 aka RSASSA-PKCS1-v1_5 w/ SHA-512

PS256

Identifies this key as PS256 aka RSASSA-PSS w/ SHA-256

PS384

Identifies this key as PS384 aka RSASSA-PSS w/ SHA-384

PS512

Identifies this key as PS512 aka RSASSA-PSS w/ SHA-512

EDDSA

Identifies this key as EdDSA (likely curve ed25519)

INSECURE_RS1

Identifies this as an INSECURE RS1 aka RSASSA-PKCS1-v1_5 using SHA-1. This is not used by validators, but can exist in some windows hello tpm’s

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

The type returned in the event of a conversion error.

Performs the conversion.

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

Performs the conversion.

Performs the conversion.

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)

recently added

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.