public final class DHExchange extends AbstractExchange
PERFORM_ECDH, PERFORM_FAST_ECDH, PERFORM_NORMAL_DH| Modifier and Type | Method and Description |
|---|---|
static DHExchange |
createInstance() |
byte[] |
createLocalSecret()
Creates the the BigInteger of this communication end-point.
|
byte[] |
getSharedSecret(byte[] remoteParameter)
Creates the shared secret out of the public BigInteger from the communication
partner.
|
createInstance, registerInstancepublic static DHExchange createInstance()
public byte[] createLocalSecret()
createLocalSecret in class AbstractExchangepublic byte[] getSharedSecret(byte[] remoteParameter)
getSharedSecret in class AbstractExchangeremoteParameter - The BigInteger that was obtained from the communication partnercert - The certificate of the remote device is not used and can be null