Package org.bouncycastle.crypto.fips
Class FipsOutputSigner<T extends Parameters>
java.lang.Object
org.bouncycastle.crypto.fips.FipsOutputSigner<T>
- Type Parameters:
T- The parameters class for this signer.
- All Implemented Interfaces:
OutputSigner<T>
- Direct Known Subclasses:
FipsOutputSignerUsingSecureRandom
public abstract class FipsOutputSigner<T extends Parameters>
extends Object
implements OutputSigner<T>
Base class for a FIPS signature generator..
-
Method Summary
Modifier and TypeMethodDescriptionabstract TReturn the parameters for this output signer.abstract byte[]Return the signature calculated on what has been written to the calculator's output stream.abstract intgetSignature(byte[] output, int off) Output the signature value for what has been written to the signer's output stream.abstract UpdateOutputStreamReturns a stream that will accept data for the purpose of calculating a signature.
-
Method Details
-
getParameters
Description copied from interface:OutputSignerReturn the parameters for this output signer.- Specified by:
getParametersin interfaceOutputSigner<T extends Parameters>- Returns:
- the signer's parameters.
-
getSigningStream
Description copied from interface:OutputSignerReturns a stream that will accept data for the purpose of calculating a signature. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.- Specified by:
getSigningStreamin interfaceOutputSigner<T extends Parameters>- Returns:
- an UpdateOutputStream
-
getSignature
Description copied from interface:OutputSignerReturn the signature calculated on what has been written to the calculator's output stream.- Specified by:
getSignaturein interfaceOutputSigner<T extends Parameters>- Returns:
- a signature.
- Throws:
PlainInputProcessingException- if the input provided cannot be processed.
-
getSignature
Description copied from interface:OutputSignerOutput the signature value for what has been written to the signer's output stream.- Specified by:
getSignaturein interfaceOutputSigner<T extends Parameters>- Parameters:
output- output array to write the signature to.off- offset to start writing the signature at.- Returns:
- the number of bytes output.
- Throws:
PlainInputProcessingException- if the input provided cannot be processed.
-