protected abstract static class OpenSSLCipher.EVP_CIPHER.AES_BASE 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| Modifier | Constructor and Description |
|---|---|
protected |
AES_BASE(OpenSSLCipher.Mode mode,
OpenSSLCipher.Padding padding) |
| Modifier and Type | Method and Description |
|---|---|
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, updateInternalcheckSupportedKeySize, engineDoFinal, engineDoFinal, engineGetBlockSize, engineGetIV, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, getPadding, isEncrypting, supportsVariableSizeIv, supportsVariableSizeKeyengineDoFinal, engineGetKeySize, engineUpdate, engineUpdateAAD, engineUpdateAADprotected AES_BASE(OpenSSLCipher.Mode mode, OpenSSLCipher.Padding padding)
protected 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