Package | Description |
---|---|
org.spongycastle.crypto.agreement |
Basic key agreement classes.
|
org.spongycastle.crypto.tls |
A lightweight TLS API.
|
Modifier and Type | Method and Description |
---|---|
java.math.BigInteger |
DHAgreement.calculateAgreement(DHPublicKeyParameters pub,
java.math.BigInteger message)
given a message from a given party and the corresponding public key,
calculate the next message in the agreement sequence.
|
Modifier and Type | Field and Description |
---|---|
protected DHPublicKeyParameters |
TlsDHKeyExchange.dhAgreeServerPublicKey |
protected DHPublicKeyParameters |
TlsPSKKeyExchange.dhAgreeServerPublicKey |
Modifier and Type | Method and Description |
---|---|
protected DHPublicKeyParameters |
TlsDHKeyExchange.validateDHPublicKey(DHPublicKeyParameters key) |
static DHPublicKeyParameters |
TlsDHUtils.validateDHPublicKey(DHPublicKeyParameters key) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
TlsDHKeyExchange.calculateDHBasicAgreement(DHPublicKeyParameters publicKey,
DHPrivateKeyParameters privateKey) |
static byte[] |
TlsDHUtils.calculateDHBasicAgreement(DHPublicKeyParameters publicKey,
DHPrivateKeyParameters privateKey) |
protected DHPublicKeyParameters |
TlsDHKeyExchange.validateDHPublicKey(DHPublicKeyParameters key) |
static DHPublicKeyParameters |
TlsDHUtils.validateDHPublicKey(DHPublicKeyParameters key) |