[][src]Enum webauthn_rs::crypto::COSEContentType

pub enum COSEContentType {
    ECDSA_SHA256,
    ECDSA_SHA384,
    ECDSA_SHA512,
    RS256,
    RS384,
    RS512,
    PS256,
    PS384,
    PS512,
    EDDSA,
    INSECURE_RS1,
}

A COSE Key Content type, indicating the type of key and hash type that should be used with this key. You shouldn't need to alter or use this value.

Variants

ECDSA_SHA256

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

ECDSA_SHA384

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

ECDSA_SHA512

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

impl Clone for COSEContentType[src]

impl Copy for COSEContentType[src]

impl Debug for COSEContentType[src]

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

impl<'_> From<&'_ COSEContentType> for i64[src]

impl PartialEq<COSEContentType> for COSEContentType[src]

impl Serialize for COSEContentType[src]

impl StructuralPartialEq for COSEContentType[src]

impl TryFrom<i128> for COSEContentType[src]

type Error = WebauthnError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.