public class XMSSMTSigner extends java.lang.Object implements StateAwareMessageSigner
| Constructor and Description |
|---|
XMSSMTSigner() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
generateSignature(byte[] message)
sign the passed in message (usually the output of a hash function).
|
AsymmetricKeyParameter |
getUpdatedPrivateKey()
Return the current version of the private key with the updated state.
|
void |
init(boolean forSigning,
CipherParameters param)
initialise the signer for signature generation or signature
verification.
|
boolean |
verifySignature(byte[] message,
byte[] signature)
verify the message message against the signature value.
|
public 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)
MessageSignergenerateSignature in interface MessageSignermessage - the message to be signed.public boolean verifySignature(byte[] message,
byte[] signature)
MessageSignerverifySignature in interface MessageSignermessage - the message that was supposed to have been signed.signature - the signature of the messagepublic AsymmetricKeyParameter getUpdatedPrivateKey()
StateAwareMessageSignerNote: calling this method will effectively disable the Signer from being used for further signature generation without another call to init().
getUpdatedPrivateKey in interface StateAwareMessageSigner