| Modifier and Type | Field and Description |
|---|---|
private javax.crypto.KeyAgreement |
myKeyAgree |
(package private) java.security.interfaces.ECPublicKey |
publicKey |
(package private) byte[] |
Q_array |
private static java.math.BigInteger |
three |
private static java.math.BigInteger |
two |
| Constructor and Description |
|---|
ECDHN() |
| Modifier and Type | Method and Description |
|---|---|
private void |
bzero(byte[] buf) |
private byte[] |
chop0(byte[] buf) |
byte[] |
getQ() |
byte[] |
getSecret(byte[] r,
byte[] s) |
void |
init(int size) |
private byte[] |
insert0(byte[] buf) |
private byte[] |
toPoint(byte[] r_array,
byte[] s_array) |
boolean |
validate(byte[] r,
byte[] s) |
byte[] Q_array
java.security.interfaces.ECPublicKey publicKey
private javax.crypto.KeyAgreement myKeyAgree
private static java.math.BigInteger two
private static java.math.BigInteger three
public void init(int size)
throws java.lang.Exception
public byte[] getQ()
throws java.lang.Exception
public byte[] getSecret(byte[] r,
byte[] s)
throws java.lang.Exception
public boolean validate(byte[] r,
byte[] s)
throws java.lang.Exception
private byte[] toPoint(byte[] r_array,
byte[] s_array)
private byte[] insert0(byte[] buf)
private byte[] chop0(byte[] buf)
private void bzero(byte[] buf)