Top Description Constructors Methods
org.bouncycastle.crypto.fips

public abstract Class FipsOutputMACCalculator<T>

extends Object
implements OutputMACCalculator<T>
Class Inheritance
All Implemented Interfaces
org.bouncycastle.crypto.OutputMACCalculator
Type Parameters
<T>
the parameters type associated with the final implementation of this calculator.
Imports
org.bouncycastle.crypto.OutputMACCalculator, .UpdateOutputStream

Base class for the approved mode OutputMACCalculator implementations.

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public byte[]
getMAC()

Implements org.bouncycastle.crypto.OutputMACCalculator.getMAC.

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

Redeclares org.bouncycastle.crypto.OutputMACCalculator.getMAC.

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

Redeclares org.bouncycastle.crypto.OutputMACCalculator.getMACSize.

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

Redeclares org.bouncycastle.crypto.OutputMACCalculator.getMACStream.

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

Redeclares org.bouncycastle.crypto.OutputMACCalculator.getParameters.

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

Redeclares org.bouncycastle.crypto.OutputMACCalculator.reset.

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

Constructor Detail

FipsOutputMACCalculatorback to summary
pack-priv FipsOutputMACCalculator()

Method Detail

getMACback to summary
public byte[] getMAC()

Implements org.bouncycastle.crypto.OutputMACCalculator.getMAC.

Doc from org.bouncycastle.crypto.OutputMACCalculator.getMAC.

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

Returns:byte[]

a MAC.

getMACback to summary
public abstract int getMAC(byte[] output, int off)

Redeclares org.bouncycastle.crypto.OutputMACCalculator.getMAC.

Doc from org.bouncycastle.crypto.OutputMACCalculator.getMAC.

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

Parameters
output:byte[]

output array to write the MAC to.

off:int

offset to start writing the MAC at.

Returns:int

the number of bytes written

getMACSizeback to summary
public abstract int getMACSize()

Redeclares org.bouncycastle.crypto.OutputMACCalculator.getMACSize.

Doc from org.bouncycastle.crypto.OutputMACCalculator.getMACSize.

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

Returns:int

MAC length in bytes.

getMACStreamback to summary
public abstract UpdateOutputStream getMACStream()

Redeclares org.bouncycastle.crypto.OutputMACCalculator.getMACStream.

Doc from org.bouncycastle.crypto.OutputMACCalculator.getMACStream.

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.OutputMACCalculator.getParameters.

Doc from org.bouncycastle.crypto.OutputMACCalculator.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.OutputMACCalculator.reset.

Doc from org.bouncycastle.crypto.OutputMACCalculator.reset.

Reset the calculator back to its initial state.