Package net.randombit.botan.seckey.aead
Class BotanAeadCipher.AesGcm
java.lang.Object
javax.crypto.CipherSpi
net.randombit.botan.seckey.BotanBaseAsymmetricCipher
net.randombit.botan.seckey.block.BotanBlockCipher
net.randombit.botan.seckey.aead.BotanAeadCipher
net.randombit.botan.seckey.aead.BotanAeadCipher.AesGcm
- Enclosing class:
- BotanAeadCipher
-
Nested Class Summary
Nested classes/interfaces inherited from class net.randombit.botan.seckey.aead.BotanAeadCipher
BotanAeadCipher.AesCcm, BotanAeadCipher.AesEax, BotanAeadCipher.AesGcm, BotanAeadCipher.AesOcb, BotanAeadCipher.AesSivNested 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetBotanCipherName(int keySize) Gets the native botan cipher name (e.g.protected booleanisValidNonceLength(int nonceLength) Checks whether the given nonce size is supported.Methods inherited from class net.randombit.botan.seckey.aead.BotanAeadCipher
doCipher, engineDoFinal, engineGetOutputSize, engineInit, engineReset, engineUpdateAAD, requiresDataBlockAlignedMethods inherited from class net.randombit.botan.seckey.block.BotanBlockCipher
engineGetBlockSize, engineInit, engineSetPadding, engineUpdateMethods inherited from class net.randombit.botan.seckey.BotanBaseAsymmetricCipher
clone, engineDoFinal, engineGetIV, engineGetParameters, engineInit, engineSetMode, engineUpdate, isDecryptingMethods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineGetKeySize, engineUnwrap, engineUpdate, engineUpdateAAD, engineWrap
-
Constructor Details
-
AesGcm
public AesGcm()
-
-
Method Details
-
getBotanCipherName
Description copied from class:BotanBaseAsymmetricCipherGets the native botan cipher name (e.g. 'AES-128/CBC/PKCS7').- Specified by:
getBotanCipherNamein classBotanBaseAsymmetricCipher- Parameters:
keySize- the key length- Returns:
Stringcontaining the Botan cipher name.
-
isValidNonceLength
protected boolean isValidNonceLength(int nonceLength) Description copied from class:BotanBaseAsymmetricCipherChecks whether the given nonce size is supported.- Overrides:
isValidNonceLengthin classBotanBlockCipher- Parameters:
nonceLength- the nonce length- Returns:
Trueis the given nonce length is supported,Falseotherwise.
-