public interface

MacCalculator

org.bouncycastle.operator.MacCalculator

Summary

Public Methods
abstract AlgorithmIdentifier getAlgorithmIdentifier()
abstract GenericKey getKey()
Return the key used for calculating the MAC.
abstract byte[] getMac()
Return the calculated MAC based on what has been written to the stream.
abstract OutputStream getOutputStream()
Returns a stream that will accept data for the purpose of calculating the MAC for later verification.

Public Methods

public abstract AlgorithmIdentifier getAlgorithmIdentifier ()

public abstract GenericKey getKey ()

Return the key used for calculating the MAC.

Returns
  • the MAC key.

public abstract byte[] getMac ()

Return the calculated MAC based on what has been written to the stream.

Returns
  • calculated MAC.

public abstract OutputStream getOutputStream ()

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

Returns
  • an OutputStream