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
Identifies this key as ECDSA (recommended SECP256R1) with SHA256 hashing
Identifies this key as ECDSA (recommended SECP384R1) with SHA384 hashing
Identifies this key as ECDSA (recommended SECP521R1) with SHA512 hashing
Identifies this key as RS256 aka RSASSA-PKCS1-v1_5 w/ SHA-256
Identifies this key as RS384 aka RSASSA-PKCS1-v1_5 w/ SHA-384
Identifies this key as RS512 aka RSASSA-PKCS1-v1_5 w/ SHA-512
Identifies this key as PS256 aka RSASSA-PSS w/ SHA-256
Identifies this key as PS384 aka RSASSA-PSS w/ SHA-384
Identifies this key as PS512 aka RSASSA-PSS w/ SHA-512
Identifies this key as EdDSA (likely curve ed25519)
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for COSEAlgorithm
impl Send for COSEAlgorithm
impl Sync for COSEAlgorithm
impl Unpin for COSEAlgorithm
impl UnwindSafe for COSEAlgorithm
Blanket Implementations
Mutably borrows from an owned value. Read more