public class BcTlsECDomain extends java.lang.Object implements TlsECDomain
| Modifier and Type | Field and Description |
|---|---|
protected BcTlsCrypto |
crypto |
protected TlsECConfig |
ecConfig |
protected org.bouncycastle.crypto.params.ECDomainParameters |
ecDomainParameters |
| Constructor and Description |
|---|
BcTlsECDomain(BcTlsCrypto crypto,
TlsECConfig ecConfig) |
| Modifier and Type | Method and Description |
|---|---|
static BcTlsSecret |
calculateBasicAgreement(BcTlsCrypto crypto,
org.bouncycastle.crypto.params.ECPrivateKeyParameters privateKey,
org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey) |
BcTlsSecret |
calculateECDHAgreement(org.bouncycastle.crypto.params.ECPrivateKeyParameters privateKey,
org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey) |
TlsAgreement |
createECDH()
Return an agreement operator suitable for ephemeral EC Diffie-Hellman.
|
org.bouncycastle.math.ec.ECPoint |
decodePoint(byte[] encoding) |
org.bouncycastle.crypto.params.ECPublicKeyParameters |
decodePublicKey(byte[] encoding) |
byte[] |
encodePoint(org.bouncycastle.math.ec.ECPoint point) |
byte[] |
encodePublicKey(org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey) |
org.bouncycastle.crypto.AsymmetricCipherKeyPair |
generateKeyPair() |
static org.bouncycastle.crypto.params.ECDomainParameters |
getDomainParameters(int namedGroup) |
static org.bouncycastle.crypto.params.ECDomainParameters |
getDomainParameters(TlsECConfig ecConfig) |
protected final BcTlsCrypto crypto
protected final TlsECConfig ecConfig
protected final org.bouncycastle.crypto.params.ECDomainParameters ecDomainParameters
public BcTlsECDomain(BcTlsCrypto crypto, TlsECConfig ecConfig)
public static BcTlsSecret calculateBasicAgreement(BcTlsCrypto crypto, org.bouncycastle.crypto.params.ECPrivateKeyParameters privateKey, org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey)
public static org.bouncycastle.crypto.params.ECDomainParameters getDomainParameters(TlsECConfig ecConfig)
public static org.bouncycastle.crypto.params.ECDomainParameters getDomainParameters(int namedGroup)
public BcTlsSecret calculateECDHAgreement(org.bouncycastle.crypto.params.ECPrivateKeyParameters privateKey, org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey)
public TlsAgreement createECDH()
TlsECDomaincreateECDH in interface TlsECDomainpublic org.bouncycastle.math.ec.ECPoint decodePoint(byte[] encoding)
throws java.io.IOException
java.io.IOExceptionpublic org.bouncycastle.crypto.params.ECPublicKeyParameters decodePublicKey(byte[] encoding)
throws java.io.IOException
java.io.IOExceptionpublic byte[] encodePoint(org.bouncycastle.math.ec.ECPoint point)
throws java.io.IOException
java.io.IOExceptionpublic byte[] encodePublicKey(org.bouncycastle.crypto.params.ECPublicKeyParameters publicKey)
throws java.io.IOException
java.io.IOExceptionpublic org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair()