From e87c91e38f79a645af39018bf30f93ad88a2a47c Mon Sep 17 00:00:00 2001 From: Emil Lundberg Date: Tue, 28 Oct 2025 17:19:04 +0100 Subject: [PATCH] Fix name of constant P521_CURVE_OID --- .../src/main/java/com/yubico/webauthn/WebAuthnCodecs.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webauthn-server-core/src/main/java/com/yubico/webauthn/WebAuthnCodecs.java b/webauthn-server-core/src/main/java/com/yubico/webauthn/WebAuthnCodecs.java index 6a62e8e04..735177ae1 100644 --- a/webauthn-server-core/src/main/java/com/yubico/webauthn/WebAuthnCodecs.java +++ b/webauthn-server-core/src/main/java/com/yubico/webauthn/WebAuthnCodecs.java @@ -56,7 +56,7 @@ final class WebAuthnCodecs { }); private static final ByteArray P384_CURVE_OID = new ByteArray(new byte[] {0x2B, (byte) 0x81, 0x04, 0, 34}); // OID 1.3.132.0.34 - private static final ByteArray P512_CURVE_OID = + private static final ByteArray P521_CURVE_OID = new ByteArray(new byte[] {0x2B, (byte) 0x81, 0x04, 0, 35}); // OID 1.3.132.0.35 static final ByteArray ED25519_ALG_ID = @@ -209,7 +209,7 @@ private static PublicKey importCoseEcdsaPublicKey(CBORObject cose) break; case COSE_CRV_P521: - curveOid = P512_CURVE_OID.getBytes(); + curveOid = P521_CURVE_OID.getBytes(); break; default: