Package org.bouncycastle.pqc.crypto
Class DigestingStateAwareMessageSigner
java.lang.Object
org.bouncycastle.pqc.crypto.DigestingMessageSigner
org.bouncycastle.pqc.crypto.DigestingStateAwareMessageSigner
- All Implemented Interfaces:
Signer
Implements the sign and verify functions for a Signature Scheme using a hash function to allow processing of large messages.
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 Summary
ConstructorDescriptionDigestingStateAwareMessageSigner
(StateAwareMessageSigner messSigner, Digest messDigest) -
Method Summary
Modifier and TypeMethodDescriptionReturn the current version of the private key with the updated state.Methods inherited from class org.bouncycastle.pqc.crypto.DigestingMessageSigner
generateSignature, init, reset, update, update, verifySignature
-
Constructor Details
-
DigestingStateAwareMessageSigner
-
-
Method Details
-
getUpdatedPrivateKey
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().
- Returns:
- an updated private key object, which can be used for later signature generation.
-