Package org.conscrypt
Class OpenSSLAeadCipherAES
java.lang.Object
javax.crypto.CipherSpi
org.conscrypt.OpenSSLCipher
org.conscrypt.OpenSSLAeadCipher
org.conscrypt.OpenSSLAeadCipherAES
- Direct Known Subclasses:
OpenSSLAeadCipherAES.GCM,OpenSSLAeadCipherAES.GCM_SIV
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from class org.conscrypt.OpenSSLCipher
OpenSSLCipher.Mode, OpenSSLCipher.Padding -
Field Summary
FieldsFields inherited from class org.conscrypt.OpenSSLAeadCipher
buf, bufCount, DEFAULT_TAG_SIZE_BITS, evpAead, tagLengthInBytesFields inherited from class org.conscrypt.OpenSSLCipher
encodedKey, iv, mode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidcheckSupportedKeySize(int keyLength) Checks whether the cipher supports this particularkeySize(in bytes) and throwsInvalidKeyExceptionif it doesn't.protected AlgorithmParameters(package private) StringReturns the standard name for the particular algorithm.(package private) int(package private) intgetOutputSizeForFinal(int inputLen) The size of output ifdoFinal()is called with thisinputLen.protected AlgorithmParameterSpecgetParameterSpec(AlgorithmParameters params) Methods inherited from class org.conscrypt.OpenSSLAeadCipher
allowsNonceReuse, checkSupportedPadding, checkSupportedTagLength, doFinalInternal, doFinalInternal, engineDoFinal, engineDoFinal, engineInitInternal, engineUpdateAAD, engineUpdateAAD, getEVP_AEAD, getOutputSizeForUpdate, updateInternalMethods inherited from class org.conscrypt.OpenSSLCipher
checkSupportedMode, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetKeySize, engineGetOutputSize, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, getPadding, isEncrypting, supportsVariableSizeIv, supportsVariableSizeKeyMethods inherited from class javax.crypto.CipherSpi
engineUpdate
-
Field Details
-
AES_BLOCK_SIZE
private static final int AES_BLOCK_SIZE- See Also:
-
-
Constructor Details
-
OpenSSLAeadCipherAES
OpenSSLAeadCipherAES(OpenSSLCipher.Mode mode)
-
-
Method Details
-
checkSupportedKeySize
Description copied from class:OpenSSLCipherChecks whether the cipher supports this particularkeySize(in bytes) and throwsInvalidKeyExceptionif it doesn't.- Specified by:
checkSupportedKeySizein classOpenSSLCipher- Throws:
InvalidKeyException
-
getBaseCipherName
String getBaseCipherName()Description copied from class:OpenSSLCipherReturns the standard name for the particular algorithm.- Specified by:
getBaseCipherNamein classOpenSSLCipher
-
getCipherBlockSize
int getCipherBlockSize()- Specified by:
getCipherBlockSizein classOpenSSLCipher
-
getParameterSpec
protected AlgorithmParameterSpec getParameterSpec(AlgorithmParameters params) throws InvalidAlgorithmParameterException - Overrides:
getParameterSpecin classOpenSSLCipher- Throws:
InvalidAlgorithmParameterException
-
engineGetParameters
- Overrides:
engineGetParametersin classOpenSSLCipher
-
getOutputSizeForFinal
int getOutputSizeForFinal(int inputLen) Description copied from class:OpenSSLCipherThe size of output ifdoFinal()is called with thisinputLen. If padding is enabled and the size of the input puts it right at the block size, it will add another block for the padding.- Overrides:
getOutputSizeForFinalin classOpenSSLAeadCipher
-