|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthCipherEngine
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:
getAuthCipherEngine(AlgorithmID algorithm,
int mode,
Key key,
AlgorithmParameters params,
byte[] aad)
getAuthCipherEngine(AlgorithmID algorithm,
int mode,
Key key,
AlgorithmParameterSpec params,
byte[] aad)
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 |
---|
javax.crypto.Cipher getCipher()
|
This Javadoc may contain text parts from text parts from IETF Internet Standard specifications (see copyright note). | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |