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.DESEDEOpenSSLCipher.EVP_AEAD, OpenSSLCipher.EVP_CIPHER, OpenSSLCipher.Mode, OpenSSLCipher.PaddingcalledUpdateencodedKey, 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, updateInternalengineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, getPadding, isEncrypting, supportsVariableSizeIvengineDoFinal, engineGetKeySize, engineUpdate, engineUpdateAAD, engineUpdateAADprotected String getBaseCipherName()
OpenSSLCiphergetBaseCipherName in class OpenSSLCipherprotected String getCipherName(int keySize, OpenSSLCipher.Mode mode)
OpenSSLCipher.EVP_CIPHERkeySize
and cipher mode.getCipherName in class OpenSSLCipher.EVP_CIPHERprotected void checkSupportedKeySize(int keySize)
throws InvalidKeyException
OpenSSLCipherkeySize (in
bytes) and throws InvalidKeyException if it doesn't.checkSupportedKeySize in class OpenSSLCipherInvalidKeyExceptionprotected void checkSupportedMode(OpenSSLCipher.Mode mode) throws NoSuchAlgorithmException
OpenSSLCiphermode
and throws NoSuchAlgorithmException if it doesn't.checkSupportedMode in class OpenSSLCipherNoSuchAlgorithmExceptionprotected void checkSupportedPadding(OpenSSLCipher.Padding padding) throws NoSuchPaddingException
OpenSSLCipherpadding
and throws NoSuchPaddingException if it doesn't.checkSupportedPadding in class OpenSSLCipherNoSuchPaddingExceptionprotected int getCipherBlockSize()
getCipherBlockSize in class OpenSSLCipherprotected boolean supportsVariableSizeKey()
supportsVariableSizeKey in class OpenSSLCipher