Expand description
COSE algorithm and key-type constants.
These integer identifiers come from two registries:
- COSE Algorithms: https://www.iana.org/assignments/cose/cose.xhtml
- WebAuthn algorithms: https://www.w3.org/TR/webauthn-2/#sctn-alg-identifier
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.