iaik.cms
Interface AuthCipherEngine

All Superinterfaces:
CipherEngine, MacAADEngine, MacEngine

public interface AuthCipherEngine
extends CipherEngine, MacAADEngine

Generic authentication Cipher engine for authenticated data encryption. Used by class EncryptedContentInfoOutputStream for authenticated content encryption with CMS content-type AuthEnvelopedData.
Additional data (which shall be authenticated only but not encrypted) may be set by calling method setAdditionalAuthData, and method getMac returns the calculated message authentication code.

An application that implements its own AuthCipherEngine has to override the following SecurityProvider methods to plug-in its own implementation:

See Also:
SecurityProvider

Field Summary
 
Fields inherited from interface iaik.cms.CipherEngine
CIPHER_DECRYPT, CIPHER_ENCRYPT, CIPHER_NONE, CIPHER_UNWRAP, CIPHER_WRAP
 
Method Summary
 javax.crypto.Cipher getCipher()
          Gets the Cipher engine used for encrypting the data.
 
Methods inherited from interface iaik.cms.CipherEngine
getParameters, initCipher, initCipher, setSecurityProvider
 
Methods inherited from interface iaik.cms.MacAADEngine
getAdditionalAuthData, setAdditionalAuthData, setMac
 
Methods inherited from interface iaik.cms.MacEngine
getMac
 

Method Detail

getCipher

javax.crypto.Cipher getCipher()
Gets the Cipher engine used for encrypting the data.

Returns:
the Cipher engine

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