corrected OID for EdDSA public key.
import org.bouncycastle.asn1.DEROctetString;
import org.bouncycastle.asn1.cryptlib.CryptlibObjectIdentifiers;
import org.bouncycastle.asn1.edec.EdECObjectIdentifiers;
+import org.bouncycastle.asn1.gnu.GNUObjectIdentifiers;
import org.bouncycastle.asn1.pkcs.PrivateKeyInfo;
import org.bouncycastle.asn1.x509.AlgorithmIdentifier;
import org.bouncycastle.asn1.x509.SubjectPublicKeyInfo;
@@ -262,7 +263,7 @@ else if (pubKey instanceof ECPublicKey)
}
else if (algorithm == PGPPublicKey.ECDSA)
{
- bcpgKey = new ECDSAPublicBCPGKey(curveOid, derQ.getPoint());
+ bcpgKey = new ECDSAPublicBCPGKey(GNUObjectIdentifiers.Ed25519, derQ.getPoint());
}
else
{
