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.KeyAgreementmyKeyAgree(package private) java.security.interfaces.ECPublicKeypublicKey(package private) byte[]Q_arrayprivate static java.math.BigIntegerthreeprivate static java.math.BigIntegertwo
-
Constructor Summary
Constructors Constructor Description ECDHN()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidbzero(byte[] buf)private byte[]chop0(byte[] buf)byte[]getQ()byte[]getSecret(byte[] r, byte[] s)voidinit(int size)private byte[]insert0(byte[] buf)private byte[]toPoint(byte[] r_array, byte[] s_array)booleanvalidate(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)
-
-