public class QTESLASigner extends Object implements MessageSigner
| Constructor and Description |
|---|
QTESLASigner() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateSignature(byte[] message)
Generate a signature directly for the passed in message.
|
void |
init(boolean forSigning,
CipherParameters param)
Initialise the signer.
|
boolean |
verifySignature(byte[] message,
byte[] signature)
Verify the signature against the passed in message.
|
public void init(boolean forSigning,
CipherParameters param)
init in interface MessageSignerforSigning - true if we are generating a signature, false
otherwise.param - ParametersWithRandom containing a private key for signature generation, public key otherwise.public byte[] generateSignature(byte[] message)
generateSignature in interface MessageSignermessage - the message to be signed.public boolean verifySignature(byte[] message,
byte[] signature)
verifySignature in interface MessageSignermessage - the message that was supposed to have been signed.signature - the signature of the messageCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.