public class SignatureECDSA extends java.lang.Object implements SignatureECDSA
Modifier and Type | Field and Description |
---|---|
(package private) java.security.KeyFactory |
keyFactory |
(package private) java.security.Signature |
signature |
Constructor and Description |
---|
SignatureECDSA() |
Modifier and Type | Method and Description |
---|---|
private void |
bzero(byte[] buf) |
private byte[] |
chop0(byte[] buf) |
void |
init() |
private byte[] |
insert0(byte[] buf) |
void |
setPrvKey(byte[] d) |
void |
setPubKey(byte[] r,
byte[] s) |
byte[] |
sign() |
void |
update(byte[] foo) |
boolean |
verify(byte[] sig) |
java.security.Signature signature
java.security.KeyFactory keyFactory
public void init() throws java.lang.Exception
public void setPubKey(byte[] r, byte[] s) throws java.lang.Exception
setPubKey
in interface SignatureECDSA
java.lang.Exception
public void setPrvKey(byte[] d) throws java.lang.Exception
setPrvKey
in interface SignatureECDSA
java.lang.Exception
public byte[] sign() throws java.lang.Exception
public void update(byte[] foo) throws java.lang.Exception
public boolean verify(byte[] sig) throws java.lang.Exception
private byte[] insert0(byte[] buf)
private byte[] chop0(byte[] buf)
private void bzero(byte[] buf)