public class X25519KeyPair extends java.lang.Object implements EphemeralKeyPair
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ALGORITHM |
| Constructor and Description |
|---|
X25519KeyPair() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
derive(byte[] publicKeyBinary)
derive shared key
|
java.lang.String |
getAlgorithm()
get algorithm name
|
byte[] |
getPublicKey()
get public key
|
public static final java.lang.String ALGORITHM
public X25519KeyPair()
throws CryptoException
CryptoExceptionpublic java.lang.String getAlgorithm()
EphemeralKeyPairgetAlgorithm in interface EphemeralKeyPairpublic byte[] derive(byte[] publicKeyBinary)
throws CryptoException
EphemeralKeyPairderive in interface EphemeralKeyPairpublicKeyBinary - peer public keyCryptoException - exceptionpublic byte[] getPublicKey()
EphemeralKeyPairgetPublicKey in interface EphemeralKeyPair