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, registerInstance
public static AbstractExchange createInstance()
public byte[] createLocalSecret()
createLocalSecret
in class AbstractExchange
public byte[] getSharedSecret(byte[] foreignPublicKey) throws java.io.IOException
AbstractExchange
getSharedSecret
in class AbstractExchange
foreignPublicKey
- The BigInteger that was obtained from the communication partner, i.e. the partners public keyjava.io.IOException