Top Description Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.jcajce

public Class JceTlsECDomain

extends Object
implements TlsECDomain
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsECDomain
Imports
java.io.IOException, java.math.BigInteger, java.security.GeneralSecurityException, .KeyFactory, .KeyPair, .KeyPairGenerator, .PrivateKey, .PublicKey, java.security.spec.ECParameterSpec, .ECPublicKeySpec, org.bouncycastle.asn1.x509.SubjectPublicKeyInfo, org.bouncycastle.math.ec.ECCurve, .ECPoint, org.bouncycastle.tls.AlertDescription, .NamedGroup, .TlsFatalAlert, org.bouncycastle.tls.crypto.TlsAgreement, .TlsCryptoException, .TlsECConfig, .TlsECDomain

EC domain class for generating key pairs and performing key agreement.

Field Summary

Modifier and TypeField and Description
protected final JcaTlsCrypto
protected final TlsECConfig
protected final ECCurve
protected final ECParameterSpec

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public JceTlsSecret
public TlsAgreement
createECDH()

Implements org.bouncycastle.tls.crypto.TlsECDomain.createECDH.

Return an agreement operator suitable for ephemeral EC Diffie-Hellman.
public ECPoint
decodePoint(byte[] encoding)

public PublicKey
decodePublicKey(byte[] encoding)

public byte[]
public byte[]
public KeyPair
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cryptoback to summary
protected final JcaTlsCrypto crypto
ecConfigback to summary
protected final TlsECConfig ecConfig
ecCurveback to summary
protected final ECCurve ecCurve
ecSpecback to summary
protected final ECParameterSpec ecSpec

Constructor Detail

JceTlsECDomainback to summary
public JceTlsECDomain(JcaTlsCrypto crypto, TlsECConfig ecConfig)

Method Detail

calculateECDHAgreementback to summary
public JceTlsSecret calculateECDHAgreement(PrivateKey privateKey, PublicKey publicKey) throws IOException
createECDHback to summary
public TlsAgreement createECDH()

Implements org.bouncycastle.tls.crypto.TlsECDomain.createECDH.

Doc from org.bouncycastle.tls.crypto.TlsECDomain.createECDH.

Return an agreement operator suitable for ephemeral EC Diffie-Hellman.

Returns:TlsAgreement

a key agreement operator.

decodePointback to summary
public ECPoint decodePoint(byte[] encoding) throws IOException
decodePublicKeyback to summary
public PublicKey decodePublicKey(byte[] encoding) throws IOException
encodePointback to summary
public byte[] encodePoint(ECPoint point) throws IOException
encodePublicKeyback to summary
public byte[] encodePublicKey(PublicKey publicKey) throws IOException
generateKeyPairback to summary
public KeyPair generateKeyPair()