| Constructor and Description |
|---|
HashMLDSASigner() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateSignature()
generate a signature for the message we've been loaded with using
the key we were initialised with.
|
byte[] |
generateSignature(byte[] hash)
Sign a message that has already been hashed externally.
|
void |
init(boolean forSigning,
CipherParameters param)
Initialise the signer for signing or verification.
|
void |
reset()
reset the internal state
|
void |
update(byte b)
update the internal digest with the byte b
|
void |
update(byte[] in,
int off,
int len)
update the internal digest with the byte array in
|
boolean |
verifySignature(byte[] signature)
return true if the internal state represents the signature described
in the passed in array.
|
boolean |
verifySignature(byte[] hash,
byte[] signature)
Verify a signature over a message that has already been hashed externally;
companion to
generateSignature(byte[]). |
public void init(boolean forSigning,
CipherParameters param)
Signerpublic void update(byte b)
Signerpublic void update(byte[] in,
int off,
int len)
Signerpublic byte[] generateSignature()
throws CryptoException,
DataLengthException
SignergenerateSignature in interface SignerCryptoExceptionDataLengthExceptionpublic boolean verifySignature(byte[] signature)
SignerverifySignature in interface Signerpublic byte[] generateSignature(byte[] hash)
throws CryptoException,
DataLengthException
hash - the digest of the message.CryptoExceptionDataLengthExceptionpublic boolean verifySignature(byte[] hash,
byte[] signature)
generateSignature(byte[]).hash - the digest of the message.signature - the candidate signature.