Skip to content

Commit f1999a7

Browse files
authored
Merge pull request #455 from Yubico/p521-const-name
Fix name of constant P521_CURVE_OID
2 parents e70320a + e87c91e commit f1999a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webauthn-server-core/src/main/java/com/yubico/webauthn/WebAuthnCodecs.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ final class WebAuthnCodecs {
5656
});
5757
private static final ByteArray P384_CURVE_OID =
5858
new ByteArray(new byte[] {0x2B, (byte) 0x81, 0x04, 0, 34}); // OID 1.3.132.0.34
59-
private static final ByteArray P512_CURVE_OID =
59+
private static final ByteArray P521_CURVE_OID =
6060
new ByteArray(new byte[] {0x2B, (byte) 0x81, 0x04, 0, 35}); // OID 1.3.132.0.35
6161

6262
static final ByteArray ED25519_ALG_ID =
@@ -209,7 +209,7 @@ private static PublicKey importCoseEcdsaPublicKey(CBORObject cose)
209209
break;
210210

211211
case COSE_CRV_P521:
212-
curveOid = P512_CURVE_OID.getBytes();
212+
curveOid = P521_CURVE_OID.getBytes();
213213
break;
214214

215215
default:

0 commit comments

Comments
 (0)