com.jcraft.jsch.jce

Class SignatureDSA

Implemented Interfaces:
SignatureDSA

public class SignatureDSA
extends java.lang.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)

Method Details

init

public void init()
            throws Exception
Specified by:
init in interface SignatureDSA

setPrvKey

public void setPrvKey(byte[] x,
                      byte[] p,
                      byte[] q,
                      byte[] g)
            throws Exception
Specified by:
setPrvKey in interface SignatureDSA

setPubKey

public void setPubKey(byte[] y,
                      byte[] p,
                      byte[] q,
                      byte[] g)
            throws Exception
Specified by:
setPubKey in interface SignatureDSA

sign

public byte[] sign()
            throws Exception
Specified by:
sign in interface SignatureDSA

update

public void update(byte[] foo)
            throws Exception
Specified by:
update in interface SignatureDSA

verify

public boolean verify(byte[] sig)
            throws Exception
Specified by:
verify in interface SignatureDSA