Skip to main content

Module algorithm

Module algorithm 

Source
Expand description

COSE algorithm and key-type constants.

These integer identifiers come from two registries:

COSE uses negative integers for algorithm identifiers (a CBOR convention for frequently-used values) and small positive integers for key type parameters.

Constantsยง

COSE_CRV_ED25519
COSE OKP curve: Ed25519.
COSE_CRV_P256
COSE EC2 curve: P-256 (NIST curve secp256r1).
COSE_CRV_P384
COSE EC2 curve: P-384 (NIST curve secp384r1).
COSE_EDDSA
COSE algorithm: EdDSA (Ed25519). Used by newer FIDO2 authenticators.
COSE_ES256
COSE algorithm: ECDSA P-256 with SHA-256. The most common WebAuthn algorithm.
COSE_ES384
COSE algorithm: ECDSA P-384 with SHA-384. Used by newer FIDO2 authenticators.
COSE_KTY_EC2
COSE key type: EC2 (elliptic-curve, two-coordinate representation).
COSE_KTY_OKP
COSE key type: OKP (Octet Key Pair, e.g. Ed25519).
COSE_KTY_RSA
COSE key type: RSA.
COSE_RS256
COSE algorithm: RSA PKCS#1 v1.5 with SHA-256. Used by older YubiKeys and Windows Hello.