public interface InputStreamAuthCipherEngine extends InputStreamCipherEngine, MacAADEngine
EncryptedContentInfoStream
for
authenticated content en/decryption with CMS content-type AuthEnvelopedData
.
cipher
. 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.
Allows the implementation of authenticated en/deciphering utilities that may be independent from the JCE
javax.crypto.Cipher
engine. The default implementation, however, is based on the
javax.crypto.Cipher
engine and uses a CipherInputStream
for
en/decrypting the data that is read by the stream.
An application that implements its own InputStreamAuthCipherEngine has to override the following
SecurityProvider
methods to plug-in its own implementation:
SecurityProvider
CIPHER_DECRYPT, CIPHER_ENCRYPT, CIPHER_NONE, CIPHER_UNWRAP, CIPHER_WRAP
cipher
getParameters, initCipher, initCipher, setSecurityProvider
getAdditionalAuthData, setAdditionalAuthData, setMac