Package net.randombit.botan.seckey.aead
Class BotanAeadCipher
java.lang.Object
javax.crypto.CipherSpi
net.randombit.botan.seckey.BotanBaseAsymmetricCipher
net.randombit.botan.seckey.block.BotanBlockCipher
net.randombit.botan.seckey.aead.BotanAeadCipher
- Direct Known Subclasses:
BotanAeadCipher.AesCcm,BotanAeadCipher.AesEax,BotanAeadCipher.AesGcm,BotanAeadCipher.AesOcb,BotanAeadCipher.AesSiv
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final classstatic final classstatic final classstatic final classNested classes/interfaces inherited from class net.randombit.botan.seckey.block.BotanBlockCipher
BotanBlockCipher.AesCbc, BotanBlockCipher.AesCfb, BotanBlockCipher.DesCbc, BotanBlockCipher.DesCfb, BotanBlockCipher.DesEdeCbc, BotanBlockCipher.DesEdeCfb -
Field Summary
Fields inherited from class net.randombit.botan.seckey.block.BotanBlockCipher
buffer, cipherMode, padding, updateGranularityFields inherited from class net.randombit.botan.seckey.BotanBaseAsymmetricCipher
cipherRef, iv, mode, name -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]doCipher(byte[] input, int outputLength, int botanFlag) protected byte[]engineDoFinal(byte[] input, int inputOffset, int inputLen) protected intengineGetOutputSize(int inputLen) protected voidengineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) protected voidprotected voidengineUpdateAAD(byte[] src, int offset, int len) protected booleanWhether the operation modes requires data block aligned or not.Methods inherited from class net.randombit.botan.seckey.block.BotanBlockCipher
engineGetBlockSize, engineInit, engineSetPadding, engineUpdate, isValidNonceLengthMethods inherited from class net.randombit.botan.seckey.BotanBaseAsymmetricCipher
clone, engineDoFinal, engineGetIV, engineGetParameters, engineInit, engineSetMode, engineUpdate, getBotanCipherName, isDecryptingMethods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineGetKeySize, engineUnwrap, engineUpdate, engineUpdateAAD, engineWrap
-
Method Details
-
engineGetOutputSize
protected int engineGetOutputSize(int inputLen) - Overrides:
engineGetOutputSizein classBotanBlockCipher
-
requiresDataBlockAligned
protected boolean requiresDataBlockAligned()Description copied from class:BotanBlockCipherWhether the operation modes requires data block aligned or not.- Specified by:
requiresDataBlockAlignedin classBotanBlockCipher- Returns:
trueif data must be block size aligned,falseotherwise.
-
engineInit
protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException - Overrides:
engineInitin classBotanBaseAsymmetricCipher- Throws:
InvalidKeyExceptionInvalidAlgorithmParameterException
-
engineUpdateAAD
protected void engineUpdateAAD(byte[] src, int offset, int len) - Overrides:
engineUpdateAADin classCipherSpi
-
engineDoFinal
protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) - Overrides:
engineDoFinalin classBotanBlockCipher
-
doCipher
protected byte[] doCipher(byte[] input, int outputLength, int botanFlag) - Overrides:
doCipherin classBotanBaseAsymmetricCipher
-
engineReset
protected void engineReset()- Overrides:
engineResetin classBotanBlockCipher
-