Package org.bouncycastle.crypto
Interface OutputSigner<T extends Parameters>
-
- Type Parameters:
T- the parameters type for the signer.
- All Known Subinterfaces:
OutputSignerUsingSecureRandom<T>,OutputSignerWithMessageRecovery<T>
- All Known Implementing Classes:
FipsOutputSigner,FipsOutputSignerUsingSecureRandom
public interface OutputSigner<T extends Parameters>Base interface for an output signer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TgetParameters()Return the parameters for this output signer.byte[]getSignature()Return the signature calculated on what has been written to the calculator's output stream.intgetSignature(byte[] output, int off)Output the signature value for what has been written to the signer's output stream.UpdateOutputStreamgetSigningStream()Returns a stream that will accept data for the purpose of calculating a signature.
-
-
-
Method Detail
-
getParameters
T getParameters()
Return the parameters for this output signer.- Returns:
- the signer's parameters.
-
getSigningStream
UpdateOutputStream getSigningStream()
Returns 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.- Returns:
- an UpdateOutputStream
-
getSignature
byte[] getSignature() throws PlainInputProcessingExceptionReturn the signature calculated on what has been written to the calculator's output stream.- Returns:
- a signature.
- Throws:
PlainInputProcessingException- if the input provided cannot be processed.
-
getSignature
int getSignature(byte[] output, int off) throws PlainInputProcessingExceptionOutput the signature value for what has been written to the signer's output stream.- 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.
-
-