| Constructor and Description |
|---|
DigestingMessageSigner(MessageSigner messSigner,
Digest messDigest) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateSignature()
This function signs the message that has been updated, making use of the
private key.
|
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)
This function verifies the signature of the message that has been
updated, with the aid of the public key.
|
public DigestingMessageSigner(MessageSigner messSigner, Digest messDigest)
public void init(boolean forSigning,
CipherParameters param)
Signerpublic byte[] generateSignature()
generateSignature in interface Signerpublic void update(byte b)
Signerpublic void update(byte[] in,
int off,
int len)
Signerpublic void reset()
Signerpublic boolean verifySignature(byte[] signature)
verifySignature in interface Signersignature - the signature of the message is given as a byte array.