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

public Class BcTlsECDomain

extends Object
implements TlsECDomain
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsECDomain
Imports
java.io.IOException, java.math.BigInteger, org.bouncycastle.asn1.x9.ECNamedCurveTable, .X9ECParameters, org.bouncycastle.crypto.AsymmetricCipherKeyPair, org.bouncycastle.crypto.agreement.ECDHBasicAgreement, org.bouncycastle.crypto.ec.CustomNamedCurves, org.bouncycastle.crypto.generators.ECKeyPairGenerator, org.bouncycastle.crypto.params.ECDomainParameters, .ECKeyGenerationParameters, .ECPrivateKeyParameters, .ECPublicKeyParameters, org.bouncycastle.math.ec.ECPoint, org.bouncycastle.tls.AlertDescription, .NamedGroup, .TlsFatalAlert, org.bouncycastle.tls.crypto.TlsAgreement, .TlsECConfig, .TlsECDomain, org.bouncycastle.util.BigIntegers

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

Field Summary

Modifier and TypeField and Description
protected final TlsECConfig
protected final BcTlsCrypto
protected final ECDomainParameters

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static BcTlsSecret
public BcTlsSecret
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 ECPublicKeyParameters
decodePublicKey(byte[] encoding)

public byte[]
public byte[]
public AsymmetricCipherKeyPair
public static ECDomainParameters
public static ECDomainParameters
getDomainParameters(int namedGroup)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configback to summary
protected final TlsECConfig config
cryptoback to summary
protected final BcTlsCrypto crypto
domainParametersback to summary
protected final ECDomainParameters domainParameters

Constructor Detail

BcTlsECDomainback to summary
public BcTlsECDomain(BcTlsCrypto crypto, TlsECConfig ecConfig)

Method Detail

calculateECDHAgreementback to summary
public static BcTlsSecret calculateECDHAgreement(BcTlsCrypto crypto, ECPrivateKeyParameters privateKey, ECPublicKeyParameters publicKey)
calculateECDHAgreementback to summary
public BcTlsSecret calculateECDHAgreement(ECPrivateKeyParameters privateKey, ECPublicKeyParameters publicKey)
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)
decodePublicKeyback to summary
public ECPublicKeyParameters decodePublicKey(byte[] encoding) throws IOException
encodePointback to summary
public byte[] encodePoint(ECPoint point)
encodePublicKeyback to summary
public byte[] encodePublicKey(ECPublicKeyParameters publicKey)
generateKeyPairback to summary
public AsymmetricCipherKeyPair generateKeyPair()
getDomainParametersback to summary
public static ECDomainParameters getDomainParameters(TlsECConfig ecConfig)
getDomainParametersback to summary
public static ECDomainParameters getDomainParameters(int namedGroup)