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)
Signer
public byte[] generateSignature()
generateSignature
in interface Signer
public void update(byte b)
Signer
public void update(byte[] in, int off, int len)
Signer
public void reset()
Signer
public boolean verifySignature(byte[] signature)
verifySignature
in interface Signer
signature
- the signature of the message is given as a byte array.