public final class ECDHExchange extends AbstractExchange
PERFORM_ECDH, PERFORM_FAST_ECDH, PERFORM_NORMAL_DH| Modifier and Type | Method and Description |
|---|---|
static AbstractExchange |
createInstance() |
byte[] |
createLocalSecret()
Creates the local secret (created as private value in this class).
|
byte[] |
getSharedSecret(byte[] foreignPublicKey)
Creates the shared secret out of the public BigInteger from the communication
partner.
|
createInstance, registerInstancepublic static AbstractExchange createInstance()
public byte[] createLocalSecret()
createLocalSecret in class AbstractExchangepublic byte[] getSharedSecret(byte[] foreignPublicKey)
throws java.io.IOException
AbstractExchangegetSharedSecret in class AbstractExchangeforeignPublicKey - The BigInteger that was obtained from the communication partner, i.e. the partners public keyjava.io.IOException