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
public class EdDSAPublicBCPGKey extends ECPublicBCPGKey
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 withPublicKeyAlgorithmTags.EDDSA_LEGACY
only and MUST NOT be used with v6 keys. Modern OpenPGP uses dedicated key types: ForPublicKeyAlgorithmTags.Ed25519
seeEd25519PublicBCPGKey
instead. ForPublicKeyAlgorithmTags.Ed448
seeEd448PublicBCPGKey
instead.
-
-
Constructor Summary
Constructors Modifier Constructor Description EdDSAPublicBCPGKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, java.math.BigInteger encodedPoint)
EdDSAPublicBCPGKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.math.ec.ECPoint point)
protected
EdDSAPublicBCPGKey(BCPGInputStream in)
-
Method Summary
-
Methods inherited from class org.bouncycastle.bcpg.ECPublicBCPGKey
encode, getCurveOID, getEncoded, getEncodedPoint, getFormat, readBytesOfEncodedLength
-
-
-
-
Constructor Detail
-
EdDSAPublicBCPGKey
protected EdDSAPublicBCPGKey(BCPGInputStream in) throws java.io.IOException
- Parameters:
in
- the stream to read the packet from.- Throws:
java.io.IOException
-
EdDSAPublicBCPGKey
public EdDSAPublicBCPGKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.math.ec.ECPoint point)
-
EdDSAPublicBCPGKey
public EdDSAPublicBCPGKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, java.math.BigInteger encodedPoint)
-
-