public class ECDH
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected javax.crypto.KeyAgreement |
agreement |
protected java.security.KeyPairGenerator |
generator |
| Constructor and Description |
|---|
ECDH() |
| Modifier and Type | Method and Description |
|---|---|
void |
computeK(byte[] f) |
byte[] |
getE() |
java.math.BigInteger |
getK() |
protected void |
init(java.security.spec.AlgorithmParameterSpec params,
Factory<Random> randomFactory) |
protected final java.security.KeyPairGenerator generator
protected final javax.crypto.KeyAgreement agreement
protected void init(java.security.spec.AlgorithmParameterSpec params,
Factory<Random> randomFactory)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic void computeK(byte[] f)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityExceptionpublic byte[] getE()
public java.math.BigInteger getK()