Package org.conscrypt
Class OpenSSLAeadCipherChaCha20
java.lang.Object
javax.crypto.CipherSpi
org.conscrypt.OpenSSLCipher
org.conscrypt.OpenSSLAeadCipher
org.conscrypt.OpenSSLAeadCipherChaCha20
-
Nested Class Summary
Nested classes/interfaces inherited from class org.conscrypt.OpenSSLCipher
OpenSSLCipher.Mode, OpenSSLCipher.Padding
-
Field Summary
Fields inherited from class org.conscrypt.OpenSSLAeadCipher
buf, bufCount, DEFAULT_TAG_SIZE_BITS, evpAead, tagLengthInBytes
Fields inherited from class org.conscrypt.OpenSSLCipher
encodedKey, iv, mode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
checkSupportedKeySize
(int keyLength) Checks whether the cipher supports this particularkeySize
(in bytes) and throwsInvalidKeyException
if it doesn't.(package private) void
Checks whether the cipher supports this particular ciphermode
and throwsNoSuchAlgorithmException
if it doesn't.(package private) String
Returns the standard name for the particular algorithm.(package private) int
(package private) long
getEVP_AEAD
(int keyLength) (package private) int
getOutputSizeForFinal
(int inputLen) The size of output ifdoFinal()
is called with thisinputLen
.Methods inherited from class org.conscrypt.OpenSSLAeadCipher
allowsNonceReuse, checkSupportedPadding, checkSupportedTagLength, doFinalInternal, doFinalInternal, engineDoFinal, engineDoFinal, engineInitInternal, engineUpdateAAD, engineUpdateAAD, getOutputSizeForUpdate, updateInternal
Methods inherited from class org.conscrypt.OpenSSLCipher
engineDoFinal, engineGetBlockSize, engineGetIV, engineGetKeySize, engineGetOutputSize, engineGetParameters, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, getPadding, getParameterSpec, isEncrypting, supportsVariableSizeIv, supportsVariableSizeKey
Methods inherited from class javax.crypto.CipherSpi
engineUpdate
-
Constructor Details
-
OpenSSLAeadCipherChaCha20
public OpenSSLAeadCipherChaCha20()
-
-
Method Details
-
checkSupportedKeySize
Description copied from class:OpenSSLCipher
Checks whether the cipher supports this particularkeySize
(in bytes) and throwsInvalidKeyException
if it doesn't.- Specified by:
checkSupportedKeySize
in classOpenSSLCipher
- Throws:
InvalidKeyException
-
getBaseCipherName
String getBaseCipherName()Description copied from class:OpenSSLCipher
Returns the standard name for the particular algorithm.- Specified by:
getBaseCipherName
in classOpenSSLCipher
-
getCipherBlockSize
int getCipherBlockSize()- Specified by:
getCipherBlockSize
in classOpenSSLCipher
-
checkSupportedMode
Description copied from class:OpenSSLCipher
Checks whether the cipher supports this particular ciphermode
and throwsNoSuchAlgorithmException
if it doesn't.- Specified by:
checkSupportedMode
in classOpenSSLCipher
- Throws:
NoSuchAlgorithmException
-
getEVP_AEAD
- Specified by:
getEVP_AEAD
in classOpenSSLAeadCipher
- Throws:
InvalidKeyException
-
getOutputSizeForFinal
int getOutputSizeForFinal(int inputLen) Description copied from class:OpenSSLCipher
The size of output ifdoFinal()
is called with thisinputLen
. If padding is enabled and the size of the input puts it right at the block size, it will add another block for the padding.- Overrides:
getOutputSizeForFinal
in classOpenSSLAeadCipher
-