Class JceTlsECDomain
java.lang.Object
org.bouncycastle.tls.crypto.impl.jcajce.JceTlsECDomain
- All Implemented Interfaces:
TlsECDomain
EC domain class for generating key pairs and performing key agreement.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final JcaTlsCryptoprotected final TlsECConfigprotected final org.bouncycastle.math.ec.ECCurveprotected final ECParameterSpec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateECDHAgreement(PrivateKey privateKey, PublicKey publicKey) Return an agreement operator suitable for ephemeral EC Diffie-Hellman.org.bouncycastle.math.ec.ECPointdecodePoint(byte[] encoding) decodePublicKey(byte[] encoding) byte[]encodePoint(org.bouncycastle.math.ec.ECPoint point) byte[]encodePublicKey(PublicKey publicKey)
-
Field Details
-
crypto
-
ecConfig
-
ecSpec
-
ecCurve
protected final org.bouncycastle.math.ec.ECCurve ecCurve
-
-
Constructor Details
-
JceTlsECDomain
-
-
Method Details
-
calculateECDHAgreement
public JceTlsSecret calculateECDHAgreement(PrivateKey privateKey, PublicKey publicKey) throws IOException - Throws:
IOException
-
createECDH
Description copied from interface:TlsECDomainReturn an agreement operator suitable for ephemeral EC Diffie-Hellman.- Specified by:
createECDHin interfaceTlsECDomain- Returns:
- a key agreement operator.
-
decodePoint
- Throws:
IOException
-
decodePublicKey
- Throws:
IOException
-
encodePoint
- Throws:
IOException
-
encodePublicKey
- Throws:
IOException
-
generateKeyPair
-