|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ByteArrayAuthCipherEngine
Generic authentication Cipher engine for authenticated encrypting/decrypting data that is
supplied by a byte array.
Used by class EncryptedContentInfo
for
authenticated content en/decryption with CMS content-type AuthEnvelopedData
.
Setups a cipher utility for authenticated encryption/decryption depending on the requested mode and
en/deciphers the data that is supplied to method 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.
An application that implements its own ByteArrayAuthCipherEngine has to override the following
SecurityProvider
methods to plug-in its own implementation:
getByteArrayAuthCipherEngine(AlgorithmID algorithm,
int mode,
Key key,
AlgorithmParameters params,
byte[] aad)
getByteArrayAuthCipherEngine(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 |
---|
Methods inherited from interface iaik.cms.ByteArrayCipherEngine |
---|
cipher |
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 |
|
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 |