Class 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 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 Details

    • EdDSAPublicBCPGKey

      protected EdDSAPublicBCPGKey(BCPGInputStream in) throws IOException
      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

      public EdDSAPublicBCPGKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, BigInteger encodedPoint)