Top Description Constructors Methods
org.bouncycastle.crypto.fips

public abstract Class FipsOutputXOFCalculator<T extends FipsParameters>

extends Object
implements OutputXOFCalculator<T extends FipsParameters>
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.OutputXOFCalculator
Known Direct Subclasses
org.bouncycastle.crypto.fips.FipsSHS.XOFOperatorFactory.LocalFipsOutputXOFCalculator
Type Parameters
<T>
The parameters class for this verifier.
Imports
org.bouncycastle.crypto.OutputXOFCalculator, .UpdateOutputStream

Base class for a FIPS extendable output function calculator.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public byte[]
getFunctionOutput(int
the number of output bytes requested.
outLen
)

Implements org.bouncycastle.crypto.OutputXOFCalculator.getFunctionOutput.

Return the outLen bytes of function output for what has been written to the calculator's output stream.
public abstract int
getFunctionOutput(byte[]
output array to write the output bytes to.
output
,
int
offset to start writing the bytes at.
off
,
int
the number of output bytes requested.
outLen
)

Redeclares org.bouncycastle.crypto.OutputXOFCalculator.getFunctionOutput.

Output the function output for what has been written to the calculator's output stream.
public abstract UpdateOutputStream
getFunctionStream()

Redeclares org.bouncycastle.crypto.OutputXOFCalculator.getFunctionStream.

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

Redeclares org.bouncycastle.crypto.OutputXOFCalculator.getParameters.

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

Redeclares org.bouncycastle.crypto.OutputXOFCalculator.reset.

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

Constructor Detail

FipsOutputXOFCalculatorback to summary
public FipsOutputXOFCalculator()

Method Detail

getFunctionOutputback to summary
public byte[] getFunctionOutput(int outLen)

Implements org.bouncycastle.crypto.OutputXOFCalculator.getFunctionOutput.

Doc from org.bouncycastle.crypto.OutputXOFCalculator.getFunctionOutput.

Return the outLen bytes of function output for what has been written to the calculator's output stream.

Parameters
outLen:int

the number of output bytes requested.

Returns:byte[]

a byte array containing outLen bytes of output.

getFunctionOutputback to summary
public abstract int getFunctionOutput(byte[] output, int off, int outLen)

Redeclares org.bouncycastle.crypto.OutputXOFCalculator.getFunctionOutput.

Doc from org.bouncycastle.crypto.OutputXOFCalculator.getFunctionOutput.

Output the function output for what has been written to the calculator's output stream.

Parameters
output:byte[]

output array to write the output bytes to.

off:int

offset to start writing the bytes at.

outLen:int

the number of output bytes requested.

Returns:int

the number of bytes written

getFunctionStreamback to summary
public abstract UpdateOutputStream getFunctionStream()

Redeclares org.bouncycastle.crypto.OutputXOFCalculator.getFunctionStream.

Doc from org.bouncycastle.crypto.OutputXOFCalculator.getFunctionStream.

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

Returns:UpdateOutputStream

an UpdateOutputStream

getParametersback to summary
public abstract T getParameters()

Redeclares org.bouncycastle.crypto.OutputXOFCalculator.getParameters.

Doc from org.bouncycastle.crypto.OutputXOFCalculator.getParameters.

Return the parameters for this MAC calculator.

Returns:T

the MAC calculator's parameters.

resetback to summary
public abstract void reset()

Redeclares org.bouncycastle.crypto.OutputXOFCalculator.reset.

Doc from org.bouncycastle.crypto.OutputXOFCalculator.reset.

Reset the calculator back to its initial state.