| 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 |
verify(byte[] signature)
This function verifies the signature of the message that has been
updated, with the aid of the public key.
|
boolean |
verifySignature(byte[] signature)
return true if the internal state represents the signature described
in the passed in array.
|
public DigestingMessageSigner(MessageSigner messSigner, Digest messDigest)
public void init(boolean forSigning,
CipherParameters param)
Signerpublic byte[] generateSignature()
generateSignature in interface Signerpublic boolean verify(byte[] signature)
signature - the signature of the message is given as a byte array.public void update(byte b)
Signerpublic void update(byte[] in,
int off,
int len)
Signerpublic void reset()
Signerpublic boolean verifySignature(byte[] signature)
SignerverifySignature in interface Signer