Top Description Fields Constructors Methods
org.bouncycastle.pqc.crypto

public Class DigestingStateAwareMessageSigner

extends DigestingMessageSigner
Class Inheritance
Imports
org.bouncycastle.crypto.Digest, org.bouncycastle.crypto.params.AsymmetricKeyParameter

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.

Field Summary

Modifier and TypeField and Description
private final StateAwareMessageSigner

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public AsymmetricKeyParameter

Returns:

an updated private key object, which can be used for later signature generation.
getUpdatedPrivateKey
()

Return the current version of the private key with the updated state.

Inherited from org.bouncycastle.pqc.crypto.DigestingMessageSigner:
generateSignatureinitresetupdateupdateverifySignature

Field Detail

signerback to summary
private final StateAwareMessageSigner signer

Constructor Detail

DigestingStateAwareMessageSignerback to summary
public DigestingStateAwareMessageSigner(StateAwareMessageSigner messSigner, Digest messDigest)

Method Detail

getUpdatedPrivateKeyback to summary
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:AsymmetricKeyParameter

an updated private key object, which can be used for later signature generation.