@@ -47,15 +47,17 @@ final class WebAuthnCodecs {
47
47
private static final ByteArray EC_PUBLIC_KEY_OID =
48
48
new ByteArray (
49
49
new byte [] {
50
- 0x2A , - 122 , 0x48 , - 50 , 0x3D , 2 , 1
50
+ 0x2A , ( byte ) 0x86 , 0x48 , ( byte ) 0xCE , 0x3D , 2 , 1
51
51
}); // OID 1.2.840.10045.2.1 ecPublicKey (ANSI X9.62 public key type)
52
52
private static final ByteArray P256_CURVE_OID =
53
53
new ByteArray (
54
- new byte [] {0x2A , -122 , 0x48 , -50 , 0x3D , 3 , 1 , 7 }); // OID 1.2.840.10045.3.1.7
54
+ new byte [] {
55
+ 0x2A , (byte ) 0x86 , 0x48 , (byte ) 0xCE , 0x3D , 3 , 1 , 7 // OID 1.2.840.10045.3.1.7
56
+ });
55
57
private static final ByteArray P384_CURVE_OID =
56
- new ByteArray (new byte [] {0x2B , - 127 , 0x04 , 0 , 34 }); // OID 1.3.132.0.34
58
+ new ByteArray (new byte [] {0x2B , ( byte ) 0x81 , 0x04 , 0 , 34 }); // OID 1.3.132.0.34
57
59
private static final ByteArray P512_CURVE_OID =
58
- new ByteArray (new byte [] {0x2B , - 127 , 0x04 , 0 , 35 }); // OID 1.3.132.0.35
60
+ new ByteArray (new byte [] {0x2B , ( byte ) 0x81 , 0x04 , 0 , 35 }); // OID 1.3.132.0.35
59
61
60
62
private static final ByteArray ED25519_ALG_ID =
61
63
new ByteArray (
0 commit comments