public class SignatureRSA extends java.lang.Object implements SignatureRSA
Constructor and Description |
---|
SignatureRSA() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
void |
setPrvKey(byte[] d,
byte[] n) |
void |
setPubKey(byte[] e,
byte[] n) |
byte[] |
sign() |
void |
update(byte[] foo) |
boolean |
verify(byte[] sig) |
public void init() throws java.lang.Exception
public void setPubKey(byte[] e, byte[] n) throws java.lang.Exception
setPubKey
in interface SignatureRSA
java.lang.Exception
public void setPrvKey(byte[] d, byte[] n) throws java.lang.Exception
setPrvKey
in interface SignatureRSA
java.lang.Exception
public byte[] sign() throws java.lang.Exception
public void update(byte[] foo) throws java.lang.Exception