Skip to content

Commit a150eaf

Browse files
committed
Use current Ed25519 OID for decoding too
1 parent b475e23 commit a150eaf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/net/i2p/crypto/eddsa/EdDSAPrivateKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ private static byte[] decode(byte[] d) throws InvalidKeySpecException {
161161
d[idx++] != 3 ||
162162
d[idx++] != (1 * 40) + 3 ||
163163
d[idx++] != 101 ||
164-
d[idx++] != 100 ||
164+
d[idx++] != 112 ||
165165
d[idx++] != 0x0a ||
166166
d[idx++] != 1 ||
167167
d[idx++] != 1 ||

src/net/i2p/crypto/eddsa/EdDSAPublicKey.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ private static byte[] decode(byte[] d) throws InvalidKeySpecException {
135135
d[idx++] != 3 ||
136136
d[idx++] != (1 * 40) + 3 ||
137137
d[idx++] != 101 ||
138-
d[idx++] != 100 ||
138+
d[idx++] != 112 ||
139139
d[idx++] != 0x0a ||
140140
d[idx++] != 1 ||
141141
d[idx++] != 1 ||

0 commit comments

Comments
 (0)