Package com.jcraft.jsch.jce
Class ECDHN
- java.lang.Object
-
- com.jcraft.jsch.jce.ECDHN
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description ECDHN()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
init
public void init(int size) throws java.lang.Exception
-
getQ
public byte[] getQ() throws java.lang.Exception
-
getSecret
public byte[] getSecret(byte[] r, byte[] s) throws java.lang.Exception
-
validate
public boolean validate(byte[] r, byte[] s) throws java.lang.Exception
-
toPoint
private byte[] toPoint(byte[] r_array, byte[] s_array)
-
insert0
private byte[] insert0(byte[] buf)
-
chop0
private byte[] chop0(byte[] buf)
-
bzero
private void bzero(byte[] buf)
-
-