Note
getUpdatedPrivateKey() needs to be called to fetch the current value of the usable private key.
| Modifier and Type | Field and Description |
|---|---|
| private final GMSSSigner | |
| private GMSSPrivateKeyParameters |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | generateSignature(byte[]
the message to be signed. message)Implements org. |
| public AsymmetricKeyParameter | getUpdatedPrivateKey()
Implements org. |
| public void | init(boolean
true if we are generating a signature, false
otherwise. forSigning, CipherParameters key parameters for signature generation. param)Implements org. |
| public boolean | verifySignature(byte[]
the message that was supposed to have been signed. message, byte[] the signature of the message signature)Implements org. |
| gmssSigner | back to summary |
|---|---|
| private final GMSSSigner gmssSigner | |
| key | back to summary |
|---|---|
| private GMSSPrivateKeyParameters key | |
| GMSSStateAwareSigner | back to summary |
|---|---|
| public GMSSStateAwareSigner(final Digest digest) | |
| generateSignature | back to summary |
|---|---|
| public byte[] generateSignature(byte[] message) Implements org. Doc from org. sign the passed in message (usually the output of a hash function).
| |
| getUpdatedPrivateKey | back to summary |
|---|---|
| public AsymmetricKeyParameter getUpdatedPrivateKey() Implements org. Doc from org. Return the current version of the private key with the updated state. Note calling this method will effectively disable the Signer from being used for further signature generation without another call to init().
| |
| init | back to summary |
|---|---|
| public void init(boolean forSigning, CipherParameters param) Implements org. Doc from org. initialise the signer for signature generation or signature verification.
| |
| verifySignature | back to summary |
|---|---|
| public boolean verifySignature(byte[] message, byte[] signature) Implements org. Doc from org. verify the message message against the signature value.
| |