Package org.conscrypt
Class OpenSSLCipher.EVP_AEAD.AES
- java.lang.Object
-
- javax.crypto.CipherSpi
-
- org.conscrypt.OpenSSLCipher
-
- org.conscrypt.OpenSSLCipher.EVP_AEAD
-
- org.conscrypt.OpenSSLCipher.EVP_AEAD.AES
-
- Direct Known Subclasses:
OpenSSLCipher.EVP_AEAD.AES.GCM
- Enclosing class:
- OpenSSLCipher.EVP_AEAD
public abstract static class OpenSSLCipher.EVP_AEAD.AES extends OpenSSLCipher.EVP_AEAD
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenSSLCipher.EVP_AEAD.AES.GCM-
Nested classes/interfaces inherited from class org.conscrypt.OpenSSLCipher.EVP_AEAD
OpenSSLCipher.EVP_AEAD.AES
-
Nested classes/interfaces inherited from class org.conscrypt.OpenSSLCipher
OpenSSLCipher.EVP_AEAD, OpenSSLCipher.EVP_CIPHER, OpenSSLCipher.Mode, OpenSSLCipher.Padding
-
-
Field Summary
-
Fields inherited from class org.conscrypt.OpenSSLCipher.EVP_AEAD
buf, bufCount, evpAead
-
Fields inherited from class org.conscrypt.OpenSSLCipher
encodedKey, iv, mode
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAES(OpenSSLCipher.Mode mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcheckSupportedKeySize(int keyLength)Checks whether the cipher supports this particularkeySize(in bytes) and throwsInvalidKeyExceptionif it doesn't.protected StringgetBaseCipherName()Returns the standard name for the particular algorithm.protected intgetCipherBlockSize()protected intgetOutputSizeForUpdate(int inputLen)AEAD buffers everything until a final output.-
Methods inherited from class org.conscrypt.OpenSSLCipher.EVP_AEAD
checkSupportedPadding, doFinalInternal, engineGetParameters, engineInitInternal, engineUpdateAAD, getEVP_AEAD, getOutputSizeForFinal, updateInternal
-
Methods inherited from class org.conscrypt.OpenSSLCipher
checkSupportedMode, engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, getPadding, isEncrypting, supportsVariableSizeIv, supportsVariableSizeKey
-
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineGetKeySize, engineUpdate, engineUpdateAAD
-
-
-
-
Constructor Detail
-
AES
protected AES(OpenSSLCipher.Mode mode)
-
-
Method Detail
-
checkSupportedKeySize
protected void checkSupportedKeySize(int keyLength) throws InvalidKeyExceptionDescription copied from class:OpenSSLCipherChecks whether the cipher supports this particularkeySize(in bytes) and throwsInvalidKeyExceptionif it doesn't.- Specified by:
checkSupportedKeySizein classOpenSSLCipher- Throws:
InvalidKeyException
-
getBaseCipherName
protected String getBaseCipherName()
Description copied from class:OpenSSLCipherReturns the standard name for the particular algorithm.- Specified by:
getBaseCipherNamein classOpenSSLCipher
-
getCipherBlockSize
protected int getCipherBlockSize()
- Specified by:
getCipherBlockSizein classOpenSSLCipher
-
getOutputSizeForUpdate
protected int getOutputSizeForUpdate(int inputLen)
AEAD buffers everything until a final output.- Specified by:
getOutputSizeForUpdatein classOpenSSLCipher
-
-