All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bouncycastle.crypto.internal.pqc.DigestingStateAwareMessageSigner Maven / Gradle / Ivy

Go to download

The FIPS 140-2 Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms certified to FIPS 140-2 level 1. This jar contains the debug version JCE provider and low-level API for the BC-FJA version 1.0.2.3, FIPS Certificate #3514. Please note the debug jar is not certified.

There is a newer version: 2.0.0
Show newest version
/***************************************************************/
/******    DO NOT EDIT THIS CLASS bc-java SOURCE FILE     ******/
/***************************************************************/
package org.bouncycastle.crypto.internal.pqc;

import org.bouncycastle.crypto.internal.Digest;
import org.bouncycastle.crypto.internal.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. *

*/ public class DigestingStateAwareMessageSigner extends DigestingMessageSigner { private final StateAwareMessageSigner signer; public DigestingStateAwareMessageSigner(StateAwareMessageSigner messSigner, Digest messDigest) { super(messSigner, messDigest); this.signer = messSigner; } /** * 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(). *

* @return an updated private key object, which can be used for later signature generation. */ public AsymmetricKeyParameter getUpdatedPrivateKey() { return signer.getUpdatedPrivateKey(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy