MessageSignerpublic class GMSSSigner extends java.lang.Object implements MessageSigner
| Constructor | Description |
|---|---|
GMSSSigner(GMSSDigestProvider digest) |
The standard constructor tries to generate the MerkleTree Algorithm
identifier with the corresponding OID.
|
| Modifier and Type | Method | Description |
|---|---|---|
byte[] |
generateSignature(byte[] message) |
Signs a message.
|
void |
init(boolean forSigning,
CipherParameters param) |
initialise the signer for signature generation or signature
verification.
|
boolean |
verifySignature(byte[] message,
byte[] signature) |
This function verifies the signature of the message that has been
updated, with the aid of the public key.
|
public GMSSSigner(GMSSDigestProvider digest)
digest - the digest to usepublic void init(boolean forSigning,
CipherParameters param)
MessageSignerinit in interface MessageSignerforSigning - true if we are generating a signature, false
otherwise.param - key parameters for signature generation.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 messagesignature - the signature associated with the message