Top Fields Constructors Methods
org.conscrypt

public Class OpenSSLAeadCipherChaCha20

extends OpenSSLAeadCipher
Class Inheritance
Annotations
@Internal
Imports
java.security.InvalidKeyException, .NoSuchAlgorithmException

Field Summary

Inherited from org.conscrypt.OpenSSLAeadCipher:
bufbufCountDEFAULT_TAG_SIZE_BITSevpAeadtagLengthInBytes

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv void
checkSupportedKeySize(int keyLength)

Implements abstract org.conscrypt.OpenSSLCipher.checkSupportedKeySize.

Checks whether the cipher supports this particular keySize (in bytes) and throws InvalidKeyException if it doesn't.
pack-priv void
checkSupportedMode(OpenSSLCipher.Mode mode)

Implements abstract org.conscrypt.OpenSSLCipher.checkSupportedMode.

Checks whether the cipher supports this particular cipher mode and throws NoSuchAlgorithmException if it doesn't.
pack-priv String
getBaseCipherName()

Implements abstract org.conscrypt.OpenSSLCipher.getBaseCipherName.

Returns the standard name for the particular algorithm.
pack-priv int
pack-priv long
getEVP_AEAD(int keyLength)

Implements abstract org.conscrypt.OpenSSLAeadCipher.getEVP_AEAD.

pack-priv int
getOutputSizeForFinal(int inputLen)

Overrides org.conscrypt.OpenSSLAeadCipher.getOutputSizeForFinal.

The size of output if doFinal() is called with this inputLen.
Inherited from org.conscrypt.OpenSSLAeadCipher:
allowsNonceReusecheckSupportedPaddingcheckSupportedTagLengthdoFinalInternaldoFinalInternalengineDoFinalengineDoFinalengineInitInternalengineUpdateAADengineUpdateAADgetOutputSizeForUpdateupdateInternal

Constructor Detail

OpenSSLAeadCipherChaCha20back to summary
public OpenSSLAeadCipherChaCha20()

Method Detail

checkSupportedKeySizeback to summary
pack-priv void checkSupportedKeySize(int keyLength) throws InvalidKeyException

Implements abstract org.conscrypt.OpenSSLCipher.checkSupportedKeySize.

Doc from org.conscrypt.OpenSSLCipher.checkSupportedKeySize.

Checks whether the cipher supports this particular keySize (in bytes) and throws InvalidKeyException if it doesn't.

Annotations
@Override
checkSupportedModeback to summary
pack-priv void checkSupportedMode(OpenSSLCipher.Mode mode) throws NoSuchAlgorithmException

Implements abstract org.conscrypt.OpenSSLCipher.checkSupportedMode.

Doc from org.conscrypt.OpenSSLCipher.checkSupportedMode.

Checks whether the cipher supports this particular cipher mode and throws NoSuchAlgorithmException if it doesn't.

Annotations
@Override
getBaseCipherNameback to summary
pack-priv String getBaseCipherName()

Implements abstract org.conscrypt.OpenSSLCipher.getBaseCipherName.

Doc from org.conscrypt.OpenSSLCipher.getBaseCipherName.

Returns the standard name for the particular algorithm.

Annotations
@Override
getCipherBlockSizeback to summary
pack-priv int getCipherBlockSize()

Implements abstract org.conscrypt.OpenSSLCipher.getCipherBlockSize.

Annotations
@Override
getEVP_AEADback to summary
pack-priv long getEVP_AEAD(int keyLength) throws InvalidKeyException

Implements abstract org.conscrypt.OpenSSLAeadCipher.getEVP_AEAD.

Annotations
@Override
getOutputSizeForFinalback to summary
pack-priv int getOutputSizeForFinal(int inputLen)

Overrides org.conscrypt.OpenSSLAeadCipher.getOutputSizeForFinal.

Doc from org.conscrypt.OpenSSLCipher.getOutputSizeForFinal.

The size of output if doFinal() is called with this inputLen. 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.

Annotations
@Override