Package org.conscrypt
Class OpenSSLCipher.ARC4
java.lang.Object
javax.crypto.CipherSpi
org.conscrypt.OpenSSLCipher
org.conscrypt.OpenSSLCipher.ARC4
- Enclosing class:
- OpenSSLCipher
public static class OpenSSLCipher.ARC4 extends OpenSSLCipher
-
Nested Class Summary
Nested classes/interfaces inherited from class org.conscrypt.OpenSSLCipher
OpenSSLCipher.AES, OpenSSLCipher.ARC4, OpenSSLCipher.DESEDE, OpenSSLCipher.Mode, OpenSSLCipher.Padding -
Constructor Summary
Constructors Constructor Description ARC4() -
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.protected booleansupportsVariableSizeKey()Methods inherited from class org.conscrypt.OpenSSLCipher
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrapMethods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineGetKeySize, engineUpdate, engineUpdateAAD, engineUpdateAAD
-
Constructor Details
-
ARC4
public ARC4()
-
-
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
-
supportsVariableSizeKey
protected boolean supportsVariableSizeKey()- Overrides:
supportsVariableSizeKeyin classOpenSSLCipher
-