public class DigestingStateAwareMessageSigner extends DigestingMessageSigner
This class can be used with algorithms where the state associated with the private key changes as each signature is generated. Calling getUpdatedPrivateKey() will recover the private key that can be used to initialize a signer next time around.
Constructor and Description |
---|
DigestingStateAwareMessageSigner(StateAwareMessageSigner messSigner,
Digest messDigest) |
Modifier and Type | Method and Description |
---|---|
AsymmetricKeyParameter |
getUpdatedPrivateKey()
Return the current version of the private key with the updated state.
|
generateSignature, init, reset, update, update, verifySignature
public DigestingStateAwareMessageSigner(StateAwareMessageSigner messSigner, Digest messDigest)
public AsymmetricKeyParameter getUpdatedPrivateKey()
Note: calling this method will effectively disable the Signer from being used for further signature generation without another call to init().