Package com.dracoon.sdk.crypto.internal
Class AesGcmFileCipher
java.lang.Object
com.dracoon.sdk.crypto.internal.AesGcmFileCipher
- Direct Known Subclasses:
AesGcmFileDecryptionCipher,AesGcmFileEncryptionCipher
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intprotected org.bouncycastle.crypto.modes.GCMModeCipherprotected static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidinit(boolean encryption, PlainFileKey fileKey) protected byte[]process(byte[] block, boolean isLastBlock)
-
Field Details
-
BLOCK_SIZE
protected static final int BLOCK_SIZE- See Also:
-
TAG_SIZE
protected static final int TAG_SIZE- See Also:
-
realCipher
protected org.bouncycastle.crypto.modes.GCMModeCipher realCipher
-
-
Constructor Details
-
AesGcmFileCipher
public AesGcmFileCipher()
-
-
Method Details
-
init
- Throws:
IllegalArgumentException
-
process
protected byte[] process(byte[] block, boolean isLastBlock) throws BadFileException, IllegalStateException, CryptoSystemException
-