public static class OpenSSLCipher.EVP_CIPHER.AES extends OpenSSLCipher.EVP_CIPHER
| Modifier and Type | Class and Description |
|---|---|
static class |
OpenSSLCipher.EVP_CIPHER.AES.CBC |
static class |
OpenSSLCipher.EVP_CIPHER.AES.CTR |
static class |
OpenSSLCipher.EVP_CIPHER.AES.ECB |
OpenSSLCipher.EVP_CIPHER.AES, OpenSSLCipher.EVP_CIPHER.ARC4, OpenSSLCipher.EVP_CIPHER.DESEDEOpenSSLCipher.EVP_AEAD, OpenSSLCipher.EVP_CIPHER, OpenSSLCipher.Mode, OpenSSLCipher.PaddingcalledUpdateencodedKey, iv, mode| Modifier | Constructor and Description |
|---|---|
protected |
AES(OpenSSLCipher.Mode mode,
OpenSSLCipher.Padding padding) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkSupportedKeySize(int keyLength)
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 keyLength,
OpenSSLCipher.Mode mode)
Returns the OpenSSL cipher name for the particular
keySize
and cipher mode. |
doFinalInternal, engineInitInternal, getOutputSizeForFinal, getOutputSizeForUpdate, updateInternalengineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, getPadding, isEncrypting, supportsVariableSizeIv, supportsVariableSizeKeyengineDoFinal, engineGetKeySize, engineUpdate, engineUpdateAAD, engineUpdateAADprotected AES(OpenSSLCipher.Mode mode, OpenSSLCipher.Padding padding)
protected void checkSupportedKeySize(int keyLength)
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 String getBaseCipherName()
OpenSSLCiphergetBaseCipherName in class OpenSSLCipherprotected String getCipherName(int keyLength, OpenSSLCipher.Mode mode)
OpenSSLCipher.EVP_CIPHERkeySize
and cipher mode.getCipherName in class OpenSSLCipher.EVP_CIPHERprotected int getCipherBlockSize()
getCipherBlockSize in class OpenSSLCipher