IAIK CMS/SMIME Toolkit API Documentation
Version 6.1

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

IAIK CMS/SMIME Toolkit API Documentation
Version 6.1

v6.1
(c) 2002 IAIK, (c) 2003 - 2025 SIC