public interface Signature
SignatureDSA
, SignatureECDSA
, SignatureRSA
,
which also have some more documentation.)Modifier and Type | Method and Description |
---|---|
void |
init()
Initializes the signature object.
|
byte[] |
sign()
Signs the data given so far to the
update(byte[]) method. |
void |
update(byte[] H)
adds some more data to be signed/verified.
|
boolean |
verify(byte[] sig)
Verifies that the given signature is a correct signature.
|
void init() throws Exception
Exception
void update(byte[] H) throws Exception
H
- the array containing the data to be signed/verified.Exception
boolean verify(byte[] sig) throws Exception
sig
- an array containing the signature for the data
given by update(byte[])
.Exception
byte[] sign() throws Exception
update(byte[])
method.Exception
This is an inofficial Javadoc created by PaĆlo Ebermann. Have a look at the official homepage.