Skip to content

Commit a515d73

Browse files
committed
Add support for Ed25519 and Ed448
1 parent 365aba2 commit a515d73

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

webauthn-server-core/src/main/java/com/yubico/webauthn/data/COSEAlgorithmIdentifier.java

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,38 @@ public enum COSEAlgorithmIdentifier {
6262
*/
6363
EdDSA(-8),
6464

65+
/**
66+
* The signature scheme Ed25519 as defined in <a
67+
* href="https://www.ietf.org/archive/id/draft-ietf-jose-fully-specified-algorithms-13.html#name-edwards-curve-digital-signa">Fully-Specified
68+
* Algorithms for JOSE and COSE</a>
69+
*
70+
* @see <a href="https://www.iana.org/assignments/cose/cose.xhtml#algorithms">COSE Algorithms
71+
* registry</a>
72+
* @see <a
73+
* href="https://www.ietf.org/archive/id/draft-ietf-jose-fully-specified-algorithms-13.html#name-edwards-curve-digital-signa">Fully-Specified
74+
* Algorithms for JOSE and COSE</a>
75+
* @see <a href="https://www.w3.org/TR/2021/REC-webauthn-2-20210408/#sctn-alg-identifier">WebAuthn
76+
* §5.8.5. Cryptographic Algorithm Identifier (typedef <code>COSEAlgorithmIdentifier</code>
77+
* )</a>
78+
*/
79+
Ed25519(-19),
80+
81+
/**
82+
* The signature scheme Ed448 as defined in <a
83+
* href="https://www.ietf.org/archive/id/draft-ietf-jose-fully-specified-algorithms-13.html#name-edwards-curve-digital-signa">Fully-Specified
84+
* Algorithms for JOSE and COSE</a>
85+
*
86+
* @see <a href="https://www.iana.org/assignments/cose/cose.xhtml#algorithms">COSE Algorithms
87+
* registry</a>
88+
* @see <a
89+
* href="https://www.ietf.org/archive/id/draft-ietf-jose-fully-specified-algorithms-13.html#name-edwards-curve-digital-signa">Fully-Specified
90+
* Algorithms for JOSE and COSE</a>
91+
* @see <a href="https://www.w3.org/TR/2021/REC-webauthn-2-20210408/#sctn-alg-identifier">WebAuthn
92+
* §5.8.5. Cryptographic Algorithm Identifier (typedef <code>COSEAlgorithmIdentifier</code>
93+
* )</a>
94+
*/
95+
Ed448(-53),
96+
6597
/**
6698
* ECDSA with SHA-256 on the NIST P-256 curve.
6799
*

0 commit comments

Comments
 (0)