public static class OpenSSLCipher.EVP_CIPHER.ARC4 extends OpenSSLCipher.EVP_CIPHER
OpenSSLCipher.EVP_CIPHER.AES, OpenSSLCipher.EVP_CIPHER.AES_128, OpenSSLCipher.EVP_CIPHER.AES_256, OpenSSLCipher.EVP_CIPHER.AES_BASE, OpenSSLCipher.EVP_CIPHER.ARC4, OpenSSLCipher.EVP_CIPHER.DESEDE
OpenSSLCipher.EVP_AEAD, OpenSSLCipher.EVP_CIPHER, OpenSSLCipher.Mode, OpenSSLCipher.Padding
calledUpdate
encodedKey, iv, mode
Constructor and Description |
---|
ARC4() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkSupportedKeySize(int keySize)
Checks whether the cipher supports this particular
keySize (in
bytes) and throws InvalidKeyException if it doesn't. |
protected void |
checkSupportedMode(OpenSSLCipher.Mode mode)
Checks whether the cipher supports this particular cipher
mode
and throws NoSuchAlgorithmException if it doesn't. |
protected void |
checkSupportedPadding(OpenSSLCipher.Padding padding)
Checks whether the cipher supports this particular cipher
padding
and throws NoSuchPaddingException if it doesn't. |
protected String |
getBaseCipherName()
Returns the standard name for the particular algorithm.
|
protected int |
getCipherBlockSize() |
protected String |
getCipherName(int keySize,
OpenSSLCipher.Mode mode)
Returns the OpenSSL cipher name for the particular
keySize
and cipher mode . |
protected boolean |
supportsVariableSizeKey() |
doFinalInternal, engineInitInternal, getOutputSizeForFinal, getOutputSizeForUpdate, updateInternal
engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, getPadding, isEncrypting, supportsVariableSizeIv
engineDoFinal, engineGetKeySize, engineUpdate, engineUpdateAAD, engineUpdateAAD
protected String getBaseCipherName()
OpenSSLCipher
getBaseCipherName
in class OpenSSLCipher
protected String getCipherName(int keySize, OpenSSLCipher.Mode mode)
OpenSSLCipher.EVP_CIPHER
keySize
and cipher mode
.getCipherName
in class OpenSSLCipher.EVP_CIPHER
protected void checkSupportedKeySize(int keySize) throws InvalidKeyException
OpenSSLCipher
keySize
(in
bytes) and throws InvalidKeyException
if it doesn't.checkSupportedKeySize
in class OpenSSLCipher
InvalidKeyException
protected void checkSupportedMode(OpenSSLCipher.Mode mode) throws NoSuchAlgorithmException
OpenSSLCipher
mode
and throws NoSuchAlgorithmException
if it doesn't.checkSupportedMode
in class OpenSSLCipher
NoSuchAlgorithmException
protected void checkSupportedPadding(OpenSSLCipher.Padding padding) throws NoSuchPaddingException
OpenSSLCipher
padding
and throws NoSuchPaddingException
if it doesn't.checkSupportedPadding
in class OpenSSLCipher
NoSuchPaddingException
protected int getCipherBlockSize()
getCipherBlockSize
in class OpenSSLCipher
protected boolean supportsVariableSizeKey()
supportsVariableSizeKey
in class OpenSSLCipher