iaik.cms
Interface MacEngine

All Known Subinterfaces:
AuthCipherEngine, ByteArrayAuthCipherEngine, InputStreamAuthCipherEngine, InputStreamMacEngine, MacAADEngine, OutputStreamMacEngine

public interface MacEngine

Generic Message Authetication Code engine. It does not take care about the way the data to be processed is provided (this may be done by, e.g., piping the data through a stream or, e.g., by suppliyng the data by means of a byte array(s). This interface only contains one single method, getMac that must return the Mac value calculated on the data.


Method Summary
 byte[] getMac()
          Gets the calculated Mac value.
 

Method Detail

getMac

byte[] getMac()
              throws CMSCryptoException
Gets the calculated Mac value. A call to this method resets the underlying Mac engine.

Returns:
the Mac value.
Throws:
CMSCryptoException - if an error occurs calculating the final Mac value

This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note).

IAIK-CMS 6.0, (c) 2002 IAIK, (c) 2003, 2023 SIC