Package com.jcraft.jsch.jce
Class SignatureDSA
- java.lang.Object
-
- com.jcraft.jsch.jce.SignatureDSA
-
- All Implemented Interfaces:
Signature,SignatureDSA
public class SignatureDSA extends java.lang.Object implements SignatureDSA
-
-
Constructor Summary
Constructors Constructor Description SignatureDSA()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit()protected byte[]normalize(byte[] secret)voidsetPrvKey(byte[] x, byte[] p, byte[] q, byte[] g)voidsetPubKey(byte[] y, byte[] p, byte[] q, byte[] g)byte[]sign()voidupdate(byte[] foo)booleanverify(byte[] sig)
-
-
-
Method Detail
-
init
public void init() throws java.lang.Exception
-
setPubKey
public void setPubKey(byte[] y, byte[] p, byte[] q, byte[] g) throws java.lang.Exception- Specified by:
setPubKeyin interfaceSignatureDSA- Throws:
java.lang.Exception
-
setPrvKey
public void setPrvKey(byte[] x, byte[] p, byte[] q, byte[] g) throws java.lang.Exception- Specified by:
setPrvKeyin interfaceSignatureDSA- Throws:
java.lang.Exception
-
sign
public byte[] sign() throws java.lang.Exception
-
update
public void update(byte[] foo) throws java.lang.Exception
-
verify
public boolean verify(byte[] sig) throws java.lang.Exception
-
normalize
protected byte[] normalize(byte[] secret)
-
-