public class SignatureDSA extends Object implements SignatureDSA
Constructor and Description |
---|
SignatureDSA() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
protected byte[] |
normalize(byte[] secret) |
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) |
public void init() throws Exception
public void setPubKey(byte[] y, byte[] p, byte[] q, byte[] g) throws Exception
setPubKey
in interface SignatureDSA
Exception
public void setPrvKey(byte[] x, byte[] p, byte[] q, byte[] g) throws Exception
setPrvKey
in interface SignatureDSA
Exception
public byte[] sign() throws Exception
public void update(byte[] foo) throws Exception
public boolean verify(byte[] sig) throws Exception
protected byte[] normalize(byte[] secret)
Copyright © 2024 JCraft,Inc.. All rights reserved.