From a515d73be26277a6ee64858893bd0aef3440e3a7 Mon Sep 17 00:00:00 2001 From: Dennis Fokin Date: Tue, 12 Aug 2025 12:03:04 +0200 Subject: [PATCH] Add support for Ed25519 and Ed448 --- .../data/COSEAlgorithmIdentifier.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/webauthn-server-core/src/main/java/com/yubico/webauthn/data/COSEAlgorithmIdentifier.java b/webauthn-server-core/src/main/java/com/yubico/webauthn/data/COSEAlgorithmIdentifier.java index 172ab46a9..f1f553147 100644 --- a/webauthn-server-core/src/main/java/com/yubico/webauthn/data/COSEAlgorithmIdentifier.java +++ b/webauthn-server-core/src/main/java/com/yubico/webauthn/data/COSEAlgorithmIdentifier.java @@ -62,6 +62,38 @@ public enum COSEAlgorithmIdentifier { */ EdDSA(-8), + /** + * The signature scheme Ed25519 as defined in Fully-Specified + * Algorithms for JOSE and COSE + * + * @see COSE Algorithms + * registry + * @see Fully-Specified + * Algorithms for JOSE and COSE + * @see WebAuthn + * §5.8.5. Cryptographic Algorithm Identifier (typedef COSEAlgorithmIdentifier + * ) + */ + Ed25519(-19), + + /** + * The signature scheme Ed448 as defined in Fully-Specified + * Algorithms for JOSE and COSE + * + * @see COSE Algorithms + * registry + * @see Fully-Specified + * Algorithms for JOSE and COSE + * @see WebAuthn + * §5.8.5. Cryptographic Algorithm Identifier (typedef COSEAlgorithmIdentifier + * ) + */ + Ed448(-53), + /** * ECDSA with SHA-256 on the NIST P-256 curve. *