Top Description Methods
org.bouncycastle.crypto

public Interface OutputXOFCalculator<T>

Known Direct Implementers
org.bouncycastle.crypto.fips.FipsOutputXOFCalculator
Type Parameters
<T>
the parameters type for the XOF calculator.

Base interface for an eXtendable Output Funnction (XOF) calculator.

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

a byte array containing outLen bytes of output.
getFunctionOutput
(int
the number of output bytes requested.
outLen
)

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

public int

Returns:

the number of bytes written
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
)

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

public UpdateOutputStream

Returns:

an UpdateOutputStream
getFunctionStream
()

Returns a stream that will accept data for the purpose of calculating a MAC.

public T

Returns:

the MAC calculator's parameters.
getParameters
()

Return the parameters for this MAC calculator.

public void
reset()

Reset the calculator back to its initial state.

Method Detail

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

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 int getFunctionOutput(byte[] output, int off, int outLen)

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 UpdateOutputStream 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 T getParameters()

Return the parameters for this MAC calculator.

Returns:T

the MAC calculator's parameters.

resetback to summary
public void reset()

Reset the calculator back to its initial state.