Package org.conscrypt
Class OpenSSLCipher.EVP_CIPHER.AES
- java.lang.Object
-
- javax.crypto.CipherSpi
-
- org.conscrypt.OpenSSLCipher
-
- org.conscrypt.OpenSSLCipher.EVP_CIPHER
-
- org.conscrypt.OpenSSLCipher.EVP_CIPHER.AES
-
- Direct Known Subclasses:
OpenSSLCipher.EVP_CIPHER.AES.CBC,OpenSSLCipher.EVP_CIPHER.AES.CTR,OpenSSLCipher.EVP_CIPHER.AES.ECB
- Enclosing class:
- OpenSSLCipher.EVP_CIPHER
public static class OpenSSLCipher.EVP_CIPHER.AES extends OpenSSLCipher.EVP_CIPHER
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenSSLCipher.EVP_CIPHER.AES.CBCstatic classOpenSSLCipher.EVP_CIPHER.AES.CTRstatic classOpenSSLCipher.EVP_CIPHER.AES.ECB-
Nested classes/interfaces inherited from class org.conscrypt.OpenSSLCipher.EVP_CIPHER
OpenSSLCipher.EVP_CIPHER.AES, OpenSSLCipher.EVP_CIPHER.ARC4, OpenSSLCipher.EVP_CIPHER.DESEDE
-
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_CIPHER
calledUpdate
-
Fields inherited from class org.conscrypt.OpenSSLCipher
encodedKey, iv, mode
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAES(OpenSSLCipher.Mode mode, OpenSSLCipher.Padding padding)
-
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 voidcheckSupportedMode(OpenSSLCipher.Mode mode)Checks whether the cipher supports this particular ciphermodeand throwsNoSuchAlgorithmExceptionif it doesn't.protected voidcheckSupportedPadding(OpenSSLCipher.Padding padding)Checks whether the cipher supports this particular cipherpaddingand throwsNoSuchPaddingExceptionif it doesn't.protected StringgetBaseCipherName()Returns the standard name for the particular algorithm.protected intgetCipherBlockSize()protected StringgetCipherName(int keyLength, OpenSSLCipher.Mode mode)Returns the OpenSSL cipher name for the particularkeySizeand ciphermode.-
Methods inherited from class org.conscrypt.OpenSSLCipher.EVP_CIPHER
doFinalInternal, engineInitInternal, getOutputSizeForFinal, getOutputSizeForUpdate, updateInternal
-
Methods inherited from class org.conscrypt.OpenSSLCipher
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, getPadding, isEncrypting, supportsVariableSizeIv, supportsVariableSizeKey
-
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineGetKeySize, engineUpdate, engineUpdateAAD, engineUpdateAAD
-
-
-
-
Constructor Detail
-
AES
protected AES(OpenSSLCipher.Mode mode, OpenSSLCipher.Padding padding)
-
-
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
-
checkSupportedMode
protected void checkSupportedMode(OpenSSLCipher.Mode mode) throws NoSuchAlgorithmException
Description copied from class:OpenSSLCipherChecks whether the cipher supports this particular ciphermodeand throwsNoSuchAlgorithmExceptionif it doesn't.- Specified by:
checkSupportedModein classOpenSSLCipher- Throws:
NoSuchAlgorithmException
-
checkSupportedPadding
protected void checkSupportedPadding(OpenSSLCipher.Padding padding) throws NoSuchPaddingException
Description copied from class:OpenSSLCipherChecks whether the cipher supports this particular cipherpaddingand throwsNoSuchPaddingExceptionif it doesn't.- Specified by:
checkSupportedPaddingin classOpenSSLCipher- Throws:
NoSuchPaddingException
-
getBaseCipherName
protected String getBaseCipherName()
Description copied from class:OpenSSLCipherReturns the standard name for the particular algorithm.- Specified by:
getBaseCipherNamein classOpenSSLCipher
-
getCipherName
protected String getCipherName(int keyLength, OpenSSLCipher.Mode mode)
Description copied from class:OpenSSLCipher.EVP_CIPHERReturns the OpenSSL cipher name for the particularkeySizeand ciphermode.- Specified by:
getCipherNamein classOpenSSLCipher.EVP_CIPHER
-
getCipherBlockSize
protected int getCipherBlockSize()
- Specified by:
getCipherBlockSizein classOpenSSLCipher
-
-