Top Inners Fields Constructors Methods
org.conscrypt

public abstract Class OpenSSLAeadCipherAES

extends OpenSSLAeadCipher
Class Inheritance
Known Direct Subclasses
org.conscrypt.OpenSSLAeadCipherAES.GCM, org.conscrypt.OpenSSLAeadCipherAES.GCM_SIV
Annotations
@Internal
Imports
java.security.AlgorithmParameters, .InvalidAlgorithmParameterException, .InvalidKeyException, .NoSuchAlgorithmException, java.security.spec.AlgorithmParameterSpec, .InvalidParameterSpecException

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
private static final int
Inherited from org.conscrypt.OpenSSLAeadCipher:
bufbufCountDEFAULT_TAG_SIZE_BITSevpAeadtagLengthInBytes

Constructor Summary

AccessConstructor and Description
pack-priv

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.
protected AlgorithmParameters
engineGetParameters()

Overrides org.conscrypt.OpenSSLCipher.engineGetParameters.

Returns the parameters used with this cipher.
pack-priv String
getBaseCipherName()

Implements abstract org.conscrypt.OpenSSLCipher.getBaseCipherName.

Returns the standard name for the particular algorithm.
pack-priv int
pack-priv int
getOutputSizeForFinal(int inputLen)

Overrides org.conscrypt.OpenSSLAeadCipher.getOutputSizeForFinal.

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

Field Detail

AES_BLOCK_SIZEback to summary
private static final int AES_BLOCK_SIZE

Constructor Detail

OpenSSLAeadCipherAESback to summary
pack-priv OpenSSLAeadCipherAES(OpenSSLCipher.Mode mode)

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
engineGetParametersback to summary
protected AlgorithmParameters engineGetParameters()

Overrides org.conscrypt.OpenSSLCipher.engineGetParameters.

Doc from javax.crypto.CipherSpi.engineGetParameters.

Returns the parameters used with this cipher.

The returned parameters may be the same that were used to initialize this cipher, or may contain additional default or random parameter values used by the underlying cipher implementation. If the required parameters were not supplied and can be generated by the cipher, the generated parameters are returned. Otherwise, null is returned.

Returns:AlgorithmParameters

the parameters used with this cipher, or null

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
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
getParameterSpecback to summary
protected AlgorithmParameterSpec getParameterSpec(AlgorithmParameters params) throws InvalidAlgorithmParameterException

Overrides org.conscrypt.OpenSSLCipher.getParameterSpec.

Annotations
@Override
org.conscrypt back to summary

public Class OpenSSLAeadCipherAES.GCM

extends OpenSSLAeadCipherAES
Class Inheritance
Known Direct Subclasses
org.conscrypt.OpenSSLAeadCipherAES.GCM.AES_128, org.conscrypt.OpenSSLAeadCipherAES.GCM.AES_256

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Constructor Summary

AccessConstructor and Description
public
GCM()

Method Summary

Modifier and TypeMethod and Description
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 long
getEVP_AEAD(int keyLength)

Implements abstract org.conscrypt.OpenSSLAeadCipher.getEVP_AEAD.

Inherited from org.conscrypt.OpenSSLAeadCipherAES:
checkSupportedKeySizeengineGetParametersgetBaseCipherNamegetCipherBlockSizegetOutputSizeForFinalgetParameterSpec

Constructor Detail

GCMback to summary
public GCM()

Method Detail

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
getEVP_AEADback to summary
pack-priv long getEVP_AEAD(int keyLength) throws InvalidKeyException

Implements abstract org.conscrypt.OpenSSLAeadCipher.getEVP_AEAD.

Annotations
@Override
org.conscrypt back to summary

public Class OpenSSLAeadCipherAES.GCM.AES_128

extends GCM
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Overrides org.conscrypt.OpenSSLAeadCipherAES.checkSupportedKeySize.

Checks whether the cipher supports this particular keySize (in bytes) and throws InvalidKeyException if it doesn't.
Inherited from org.conscrypt.OpenSSLAeadCipherAES.GCM:
checkSupportedModegetEVP_AEAD

Constructor Detail

AES_128back to summary
public AES_128()

Method Detail

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

Overrides org.conscrypt.OpenSSLAeadCipherAES.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
org.conscrypt back to summary

public Class OpenSSLAeadCipherAES.GCM.AES_256

extends GCM
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Overrides org.conscrypt.OpenSSLAeadCipherAES.checkSupportedKeySize.

Checks whether the cipher supports this particular keySize (in bytes) and throws InvalidKeyException if it doesn't.
Inherited from org.conscrypt.OpenSSLAeadCipherAES.GCM:
checkSupportedModegetEVP_AEAD

Constructor Detail

AES_256back to summary
public AES_256()

Method Detail

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

Overrides org.conscrypt.OpenSSLAeadCipherAES.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
org.conscrypt back to summary

public Class OpenSSLAeadCipherAES.GCM_SIV

extends OpenSSLAeadCipherAES
Class Inheritance
Known Direct Subclasses
org.conscrypt.OpenSSLAeadCipherAES.GCM_SIV.AES_128, org.conscrypt.OpenSSLAeadCipherAES.GCM_SIV.AES_256

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv boolean
allowsNonceReuse()

Overrides org.conscrypt.OpenSSLAeadCipher.allowsNonceReuse.

Returns whether reusing nonces is allowed (aka, whether this is nonce misuse-resistant).
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 void
pack-priv long
getEVP_AEAD(int keyLength)

Implements abstract org.conscrypt.OpenSSLAeadCipher.getEVP_AEAD.

Inherited from org.conscrypt.OpenSSLAeadCipherAES:
checkSupportedKeySizeengineGetParametersgetBaseCipherNamegetCipherBlockSizegetOutputSizeForFinalgetParameterSpec

Constructor Detail

GCM_SIVback to summary
public GCM_SIV()

Method Detail

allowsNonceReuseback to summary
pack-priv boolean allowsNonceReuse()

Overrides org.conscrypt.OpenSSLAeadCipher.allowsNonceReuse.

Doc from org.conscrypt.OpenSSLAeadCipher.allowsNonceReuse.

Returns whether reusing nonces is allowed (aka, whether this is nonce misuse-resistant). Most AEAD ciphers are not, but some are specially constructed so that reusing a key/nonce pair is safe.

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
checkSupportedTagLengthback to summary
pack-priv void checkSupportedTagLength(int tagLengthInBits) throws InvalidAlgorithmParameterException

Overrides org.conscrypt.OpenSSLAeadCipher.checkSupportedTagLength.

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

Implements abstract org.conscrypt.OpenSSLAeadCipher.getEVP_AEAD.

Annotations
@Override
org.conscrypt back to summary

public Class OpenSSLAeadCipherAES.GCM_SIV.AES_128

extends GCM_SIV
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Overrides org.conscrypt.OpenSSLAeadCipherAES.checkSupportedKeySize.

Checks whether the cipher supports this particular keySize (in bytes) and throws InvalidKeyException if it doesn't.
Inherited from org.conscrypt.OpenSSLAeadCipherAES.GCM_SIV:
allowsNonceReusecheckSupportedModecheckSupportedTagLengthgetEVP_AEAD

Constructor Detail

AES_128back to summary
public AES_128()

Method Detail

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

Overrides org.conscrypt.OpenSSLAeadCipherAES.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
org.conscrypt back to summary

public Class OpenSSLAeadCipherAES.GCM_SIV.AES_256

extends GCM_SIV
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

Overrides org.conscrypt.OpenSSLAeadCipherAES.checkSupportedKeySize.

Checks whether the cipher supports this particular keySize (in bytes) and throws InvalidKeyException if it doesn't.
Inherited from org.conscrypt.OpenSSLAeadCipherAES.GCM_SIV:
allowsNonceReusecheckSupportedModecheckSupportedTagLengthgetEVP_AEAD

Constructor Detail

AES_256back to summary
public AES_256()

Method Detail

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

Overrides org.conscrypt.OpenSSLAeadCipherAES.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