Package org.bouncycastle.bcpg
Class ECDHPublicBCPGKey
java.lang.Object
org.bouncycastle.bcpg.BCPGObject
org.bouncycastle.bcpg.ECPublicBCPGKey
org.bouncycastle.bcpg.ECDHPublicBCPGKey
- All Implemented Interfaces:
BCPGKey
,org.bouncycastle.util.Encodable
base class for an ECDH Public Key.
-
Constructor Summary
ConstructorsConstructorDescriptionECDHPublicBCPGKey
(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, BigInteger point, int hashAlgorithm, int symmetricKeyAlgorithm) ECDHPublicBCPGKey
(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.math.ec.ECPoint point, int hashAlgorithm, int symmetricKeyAlgorithm) -
Method Summary
Methods inherited from class org.bouncycastle.bcpg.ECPublicBCPGKey
getCurveOID, getEncoded, getEncodedPoint, getFormat, readBytesOfEncodedLength
-
Constructor Details
-
ECDHPublicBCPGKey
- Parameters:
in
- the stream to read the packet from.- Throws:
IOException
-
ECDHPublicBCPGKey
public ECDHPublicBCPGKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, org.bouncycastle.math.ec.ECPoint point, int hashAlgorithm, int symmetricKeyAlgorithm) -
ECDHPublicBCPGKey
public ECDHPublicBCPGKey(org.bouncycastle.asn1.ASN1ObjectIdentifier oid, BigInteger point, int hashAlgorithm, int symmetricKeyAlgorithm)
-
-
Method Details
-
getReserved
public byte getReserved() -
getHashAlgorithm
public byte getHashAlgorithm() -
getSymmetricKeyAlgorithm
public byte getSymmetricKeyAlgorithm() -
encode
- Overrides:
encode
in classECPublicBCPGKey
- Throws:
IOException
-