Package org.conscrypt
Class OpenSSLCipher.EVP_CIPHER.ARC4
- java.lang.Object
-
- javax.crypto.CipherSpi
-
- org.conscrypt.OpenSSLCipher
-
- org.conscrypt.OpenSSLCipher.EVP_CIPHER
-
- org.conscrypt.OpenSSLCipher.EVP_CIPHER.ARC4
-
- Enclosing class:
- OpenSSLCipher.EVP_CIPHER
public static class OpenSSLCipher.EVP_CIPHER.ARC4 extends OpenSSLCipher.EVP_CIPHER
-
-
Nested Class Summary
-
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 Constructor Description ARC4()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.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
-
Methods inherited from class javax.crypto.CipherSpi
engineDoFinal, engineGetKeySize, engineUpdate, engineUpdateAAD, engineUpdateAAD
-
-
-
-
Method Detail
-
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 keySize, OpenSSLCipher.Mode mode)
Description copied from class:OpenSSLCipher.EVP_CIPHERReturns the OpenSSL cipher name for the particularkeySizeand ciphermode.- Specified by:
getCipherNamein classOpenSSLCipher.EVP_CIPHER
-
checkSupportedKeySize
protected void checkSupportedKeySize(int keySize) 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
-
getCipherBlockSize
protected int getCipherBlockSize()
- Specified by:
getCipherBlockSizein classOpenSSLCipher
-
supportsVariableSizeKey
protected boolean supportsVariableSizeKey()
- Overrides:
supportsVariableSizeKeyin classOpenSSLCipher
-
-