Package org.conscrypt
Class OpenSSLCipher.AES
java.lang.Object
javax.crypto.CipherSpi
org.conscrypt.OpenSSLCipher
org.conscrypt.OpenSSLCipher.AES
- Direct Known Subclasses:
OpenSSLCipher.AES.CBC,OpenSSLCipher.AES.CFB,OpenSSLCipher.AES.CTR,OpenSSLCipher.AES.ECB,OpenSSLCipher.AES.OFB
- Enclosing class:
- OpenSSLCipher
public static class OpenSSLCipher.AES extends OpenSSLCipher
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenSSLCipher.AES.CBCstatic classOpenSSLCipher.AES.CFBstatic classOpenSSLCipher.AES.CTRstatic classOpenSSLCipher.AES.ECBstatic classOpenSSLCipher.AES.OFBNested classes/interfaces inherited from class org.conscrypt.OpenSSLCipher
OpenSSLCipher.AES, OpenSSLCipher.ARC4, OpenSSLCipher.DESEDE, OpenSSLCipher.Mode, OpenSSLCipher.Padding -
Constructor Summary
Constructors Modifier Constructor Description protectedAES(OpenSSLCipher.Mode mode, OpenSSLCipher.Padding padding) -
Method Summary
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
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, supportsVariableSizeKeyMethods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineGetKeySize, engineUpdate, engineUpdateAAD, engineUpdateAAD
-
Constructor Details
-
AES
-
-
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
-
checkSupportedMode
Description copied from class:OpenSSLCipherChecks whether the cipher supports this particular ciphermodeand throwsNoSuchAlgorithmExceptionif it doesn't.- Specified by:
checkSupportedModein classOpenSSLCipher- Throws:
NoSuchAlgorithmException
-
checkSupportedPadding
Description copied from class:OpenSSLCipherChecks whether the cipher supports this particular cipherpaddingand throwsNoSuchPaddingExceptionif it doesn't.- Specified by:
checkSupportedPaddingin classOpenSSLCipher- Throws:
NoSuchPaddingException
-
getBaseCipherName
Description copied from class:OpenSSLCipherReturns the standard name for the particular algorithm.- Specified by:
getBaseCipherNamein classOpenSSLCipher
-
getCipherName
Description copied from class:OpenSSLCipherReturns the OpenSSL cipher name for the particularkeySizeand ciphermode.- Specified by:
getCipherNamein classOpenSSLCipher
-
getCipherBlockSize
protected int getCipherBlockSize()- Specified by:
getCipherBlockSizein classOpenSSLCipher
-