com.jcraft.jsch.jce
Class SignatureDSA
java.lang.Object
com.jcraft.jsch.jce.SignatureDSA
- All Implemented Interfaces:
- Signature, SignatureDSA
public class SignatureDSA
- extends Object
- implements SignatureDSA
Method Summary |
void |
init()
|
void |
setPrvKey(byte[] x,
byte[] p,
byte[] q,
byte[] g)
|
void |
setPubKey(byte[] y,
byte[] p,
byte[] q,
byte[] g)
|
byte[] |
sign()
|
void |
update(byte[] foo)
|
boolean |
verify(byte[] sig)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SignatureDSA
public SignatureDSA()
init
public void init()
throws Exception
- Specified by:
init
in interface Signature
- Throws:
Exception
setPubKey
public void setPubKey(byte[] y,
byte[] p,
byte[] q,
byte[] g)
throws Exception
- Specified by:
setPubKey
in interface SignatureDSA
- Throws:
Exception
setPrvKey
public void setPrvKey(byte[] x,
byte[] p,
byte[] q,
byte[] g)
throws Exception
- Specified by:
setPrvKey
in interface SignatureDSA
- Throws:
Exception
sign
public byte[] sign()
throws Exception
- Specified by:
sign
in interface Signature
- Throws:
Exception
update
public void update(byte[] foo)
throws Exception
- Specified by:
update
in interface Signature
- Throws:
Exception
verify
public boolean verify(byte[] sig)
throws Exception
- Specified by:
verify
in interface Signature
- Throws:
Exception
Copyright © 2014 JCraft,Inc.. All Rights Reserved.