Top Description Constructors Methods
org.bouncycastle.crypto.fips

public abstract Class FipsOutputDigestCalculator<T>

extends Object
implements OutputDigestCalculator<T>
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.OutputDigestCalculator, java.lang.Cloneable
Known Direct Subclasses
org.bouncycastle.crypto.fips.FipsSHS.LocalFipsOutputDigestCalculator
Type Parameters
<T>
the parameters type associated with the final implementation of this calculator.
Imports
org.bouncycastle.crypto.OutputDigestCalculator, .UpdateOutputStream

Base class for the approved mode OutputDigestCalculator implementations.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public abstract FipsOutputDigestCalculator<T>
clone()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.clone.

Overrides java.lang.Object.clone.

Return a clone of this calculator.
public final byte[]
getDigest()

Implements org.bouncycastle.crypto.OutputDigestCalculator.getDigest.

Return the digest calculated on what has been written to the calculator's output stream.
public abstract int
getDigest(byte[]
output array to write the digest to.
output
,
int
offset to start writing the digest at..
offSet
)

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.getDigest.

Output the current digest value for what has been written to the calculator's output stream.
public abstract int
getDigestBlockSize()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.getDigestBlockSize.

Return the size, in bytes, of the internal block used by the digest in this calculator.
public abstract int
getDigestSize()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.getDigestSize.

Return the size of the digest produced by this calculator in bytes.
public abstract UpdateOutputStream
getDigestStream()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.getDigestStream.

Returns a stream that will accept data for the purpose of calculating a digest.
public abstract T
getParameters()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.getParameters.

Return the parameters for this digest calculator.
public abstract void
reset()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.reset.

Reset the calculator back to its initial state.
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

FipsOutputDigestCalculatorback to summary
pack-priv FipsOutputDigestCalculator()

Method Detail

cloneback to summary
public abstract FipsOutputDigestCalculator<T> clone() throws CloneNotSupportedException

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.clone.

Overrides java.lang.Object.clone.

Doc from org.bouncycastle.crypto.OutputDigestCalculator.clone.

Return a clone of this calculator.

Returns:FipsOutputDigestCalculator<T>

a clone of the digest calculator.

Exceptions
CloneNotSupportedException:
if cloning is not possible.
getDigestback to summary
public final byte[] getDigest()

Implements org.bouncycastle.crypto.OutputDigestCalculator.getDigest.

Doc from org.bouncycastle.crypto.OutputDigestCalculator.getDigest.

Return the digest calculated on what has been written to the calculator's output stream.

Returns:byte[]

a digest.

getDigestback to summary
public abstract int getDigest(byte[] output, int offSet)

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.getDigest.

Doc from org.bouncycastle.crypto.OutputDigestCalculator.getDigest.

Output the current digest value for what has been written to the calculator's output stream.

Parameters
output:byte[]

output array to write the digest to.

offSet:int

offset to start writing the digest at..

Returns:int

the number of bytes written.

getDigestBlockSizeback to summary
public abstract int getDigestBlockSize()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.getDigestBlockSize.

Doc from org.bouncycastle.crypto.OutputDigestCalculator.getDigestBlockSize.

Return the size, in bytes, of the internal block used by the digest in this calculator.

Returns:int

internal block size in bytes.

getDigestSizeback to summary
public abstract int getDigestSize()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.getDigestSize.

Doc from org.bouncycastle.crypto.OutputDigestCalculator.getDigestSize.

Return the size of the digest produced by this calculator in bytes.

Returns:int

digest length in bytes.

getDigestStreamback to summary
public abstract UpdateOutputStream getDigestStream()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.getDigestStream.

Doc from org.bouncycastle.crypto.OutputDigestCalculator.getDigestStream.

Returns a stream that will accept data for the purpose of calculating a digest. Use org.bouncycastle.util.io.TeeOutputStream if you want to accumulate the data on the fly as well.

Returns:UpdateOutputStream

an OutputStream

getParametersback to summary
public abstract T getParameters()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.getParameters.

Doc from org.bouncycastle.crypto.OutputDigestCalculator.getParameters.

Return the parameters for this digest calculator.

Returns:T

the digest calculator's parameters.

resetback to summary
public abstract void reset()

Redeclares org.bouncycastle.crypto.OutputDigestCalculator.reset.

Doc from org.bouncycastle.crypto.OutputDigestCalculator.reset.

Reset the calculator back to its initial state.