Class DigestingStateAwareMessageSigner

  • All Implemented Interfaces:
    Signer

    public class DigestingStateAwareMessageSigner
    extends DigestingMessageSigner
    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.

    • Method Detail

      • getUpdatedPrivateKey

        public AsymmetricKeyParameter 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.