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
Modifier and TypeFieldDescriptionprotected final JcaTlsCrypto
protected final TlsECConfig
protected final org.bouncycastle.math.ec.ECCurve
protected final ECParameterSpec
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncalculateECDHAgreement
(PrivateKey privateKey, PublicKey publicKey) Return an agreement operator suitable for ephemeral EC Diffie-Hellman.org.bouncycastle.math.ec.ECPoint
decodePoint
(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:TlsECDomain
Return an agreement operator suitable for ephemeral EC Diffie-Hellman.- Specified by:
createECDH
in interfaceTlsECDomain
- Returns:
- a key agreement operator.
-
decodePoint
- Throws:
IOException
-
decodePublicKey
- Throws:
IOException
-
encodePoint
- Throws:
IOException
-
encodePublicKey
- Throws:
IOException
-
generateKeyPair
-