Package org.conscrypt
Class OpenSSLCipher.DESEDE
java.lang.Object
javax.crypto.CipherSpi
org.conscrypt.OpenSSLCipher
org.conscrypt.OpenSSLCipher.DESEDE
- Direct Known Subclasses:
OpenSSLCipher.DESEDE.CBC,OpenSSLCipher.DESEDE.CFB,OpenSSLCipher.DESEDE.ECB,OpenSSLCipher.DESEDE.OFB
- Enclosing class:
- OpenSSLCipher
public static class OpenSSLCipher.DESEDE extends OpenSSLCipher
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOpenSSLCipher.DESEDE.CBCstatic classOpenSSLCipher.DESEDE.CFBstatic classOpenSSLCipher.DESEDE.ECBstatic classOpenSSLCipher.DESEDE.OFBNested classes/interfaces inherited from class org.conscrypt.OpenSSLCipher
OpenSSLCipher.AES, OpenSSLCipher.ARC4, OpenSSLCipher.DESEDE, OpenSSLCipher.Mode, OpenSSLCipher.Padding -
Constructor Summary
Constructors Constructor Description DESEDE(OpenSSLCipher.Mode mode, OpenSSLCipher.Padding padding) -
Method Summary
Modifier and Type Method Description protected voidcheckSupportedKeySize(int keySize)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 keySize, 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
-
DESEDE
-
-
Method Details
-
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
-
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
-
getCipherBlockSize
protected int getCipherBlockSize()- Specified by:
getCipherBlockSizein classOpenSSLCipher
-