Package org.conscrypt
Class OpenSSLEvpCipherDESEDE
java.lang.Object
javax.crypto.CipherSpi
org.conscrypt.OpenSSLCipher
org.conscrypt.OpenSSLEvpCipher
org.conscrypt.OpenSSLEvpCipherDESEDE
- Direct Known Subclasses:
OpenSSLEvpCipherDESEDE.CBC
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.conscrypt.OpenSSLCipher
OpenSSLCipher.Mode, OpenSSLCipher.Padding
-
Field Summary
FieldsFields inherited from class org.conscrypt.OpenSSLCipher
encodedKey, iv, mode
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSSLEvpCipherDESEDE
(OpenSSLCipher.Mode mode, OpenSSLCipher.Padding padding) -
Method Summary
Modifier and TypeMethodDescription(package private) void
checkSupportedKeySize
(int keySize) Checks whether the cipher supports this particularkeySize
(in bytes) and throwsInvalidKeyException
if it doesn't.(package private) void
Checks whether the cipher supports this particular ciphermode
and throwsNoSuchAlgorithmException
if it doesn't.(package private) void
Checks whether the cipher supports this particular cipherpadding
and throwsNoSuchPaddingException
if it doesn't.(package private) String
Returns the standard name for the particular algorithm.(package private) int
(package private) String
getCipherName
(int keySize, OpenSSLCipher.Mode mode) Returns the OpenSSL cipher name for the particularkeySize
and ciphermode
.Methods inherited from class org.conscrypt.OpenSSLEvpCipher
doFinalInternal, engineInitInternal, getOutputSizeForFinal, getOutputSizeForUpdate, updateInternal
Methods inherited from class org.conscrypt.OpenSSLCipher
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetKeySize, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, getPadding, getParameterSpec, isEncrypting, supportsVariableSizeIv, supportsVariableSizeKey
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineUpdate, engineUpdateAAD, engineUpdateAAD
-
Field Details
-
DES_BLOCK_SIZE
private static final int DES_BLOCK_SIZE- See Also:
-
-
Constructor Details
-
OpenSSLEvpCipherDESEDE
OpenSSLEvpCipherDESEDE(OpenSSLCipher.Mode mode, OpenSSLCipher.Padding padding)
-
-
Method Details
-
getBaseCipherName
String getBaseCipherName()Description copied from class:OpenSSLCipher
Returns the standard name for the particular algorithm.- Specified by:
getBaseCipherName
in classOpenSSLCipher
-
getCipherName
Description copied from class:OpenSSLEvpCipher
Returns the OpenSSL cipher name for the particularkeySize
and ciphermode
.- Specified by:
getCipherName
in classOpenSSLEvpCipher
-
checkSupportedKeySize
Description copied from class:OpenSSLCipher
Checks whether the cipher supports this particularkeySize
(in bytes) and throwsInvalidKeyException
if it doesn't.- Specified by:
checkSupportedKeySize
in classOpenSSLCipher
- Throws:
InvalidKeyException
-
checkSupportedMode
Description copied from class:OpenSSLCipher
Checks whether the cipher supports this particular ciphermode
and throwsNoSuchAlgorithmException
if it doesn't.- Specified by:
checkSupportedMode
in classOpenSSLCipher
- Throws:
NoSuchAlgorithmException
-
checkSupportedPadding
Description copied from class:OpenSSLCipher
Checks whether the cipher supports this particular cipherpadding
and throwsNoSuchPaddingException
if it doesn't.- Specified by:
checkSupportedPadding
in classOpenSSLCipher
- Throws:
NoSuchPaddingException
-
getCipherBlockSize
int getCipherBlockSize()- Specified by:
getCipherBlockSize
in classOpenSSLCipher
-