public class Curve25519DH
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.crypto.KeyAgreement |
agreement |
protected java.security.KeyPairGenerator |
generator |
| Constructor and Description |
|---|
Curve25519DH() |
| Modifier and Type | Method and Description |
|---|---|
static java.security.spec.AlgorithmParameterSpec |
getCurve25519Params()
TODO want to figure out why BouncyCastle does not work.
|
byte[] |
getE() |
java.math.BigInteger |
getK() |
void |
init(java.security.spec.AlgorithmParameterSpec params,
Factory<Random> randomFactory) |
protected final java.security.KeyPairGenerator generator
protected final javax.crypto.KeyAgreement agreement
public void init(java.security.spec.AlgorithmParameterSpec params,
Factory<Random> randomFactory)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic static java.security.spec.AlgorithmParameterSpec getCurve25519Params()
public byte[] getE()
public java.math.BigInteger getK()