Package org.bouncycastle.bcpg
Class EdDSAPublicBCPGKey
java.lang.Object
org.bouncycastle.bcpg.BCPGObject
org.bouncycastle.bcpg.ECPublicBCPGKey
org.bouncycastle.bcpg.EdDSAPublicBCPGKey
- All Implemented Interfaces:
BCPGKey
,org.bouncycastle.util.Encodable
Base class for an EdDSA Public Key.
Here, the curve is identified by an OID and the key is MPI encoded.
This class is used with
PublicKeyAlgorithmTags.EDDSA_LEGACY
only and MUST NOT be used with v6 keys.
Modern OpenPGP uses dedicated key types:
For PublicKeyAlgorithmTags.Ed25519
see Ed25519PublicBCPGKey
instead.
For PublicKeyAlgorithmTags.Ed448
see Ed448PublicBCPGKey
instead.- See Also:
-
Constructor Summary
ModifierConstructorDescriptionEdDSAPublicBCPGKey
(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, BigInteger encodedPoint) EdDSAPublicBCPGKey
(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.math.ec.ECPoint point) protected
-
Method Summary
Methods inherited from class org.bouncycastle.bcpg.ECPublicBCPGKey
encode, getCurveOID, getEncoded, getEncodedPoint, getFormat, readBytesOfEncodedLength
-
Constructor Details
-
EdDSAPublicBCPGKey
- Parameters:
in
- the stream to read the packet from.- Throws:
IOException
-
EdDSAPublicBCPGKey
public EdDSAPublicBCPGKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.math.ec.ECPoint point) -
EdDSAPublicBCPGKey
-