Package org.conscrypt
Class OpenSSLAeadCipherAES.GCM_SIV
- java.lang.Object
-
- javax.crypto.CipherSpi
-
- org.conscrypt.OpenSSLCipher
-
- org.conscrypt.OpenSSLAeadCipher
-
- org.conscrypt.OpenSSLAeadCipherAES
-
- org.conscrypt.OpenSSLAeadCipherAES.GCM_SIV
-
- Direct Known Subclasses:
OpenSSLAeadCipherAES.GCM_SIV.AES_128
,OpenSSLAeadCipherAES.GCM_SIV.AES_256
- Enclosing class:
- OpenSSLAeadCipherAES
public static class OpenSSLAeadCipherAES.GCM_SIV extends OpenSSLAeadCipherAES
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OpenSSLAeadCipherAES.GCM_SIV.AES_128
static class
OpenSSLAeadCipherAES.GCM_SIV.AES_256
-
Nested classes/interfaces inherited from class org.conscrypt.OpenSSLAeadCipherAES
OpenSSLAeadCipherAES.GCM, OpenSSLAeadCipherAES.GCM_SIV
-
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 Constructor Description GCM_SIV()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
allowsNonceReuse()
Returns whether reusing nonces is allowed (aka, whether this is nonce misuse-resistant).(package private) void
checkSupportedMode(OpenSSLCipher.Mode mode)
Checks whether the cipher supports this particular ciphermode
and throwsNoSuchAlgorithmException
if it doesn't.(package private) void
checkSupportedTagLength(int tagLengthInBits)
(package private) long
getEVP_AEAD(int keyLength)
-
Methods inherited from class org.conscrypt.OpenSSLAeadCipherAES
checkSupportedKeySize, engineGetParameters, getBaseCipherName, getCipherBlockSize, getOutputSizeForFinal, getParameterSpec
-
Methods inherited from class org.conscrypt.OpenSSLAeadCipher
checkSupportedPadding, doFinalInternal, doFinalInternal, engineDoFinal, engineDoFinal, engineInitInternal, engineUpdateAAD, engineUpdateAAD, getOutputSizeForUpdate, updateInternal
-
Methods inherited from class org.conscrypt.OpenSSLCipher
engineDoFinal, engineGetBlockSize, engineGetIV, engineGetKeySize, engineGetOutputSize, engineInit, engineInit, engineInit, engineSetMode, engineSetPadding, engineUnwrap, engineUpdate, engineUpdate, engineWrap, getPadding, isEncrypting, supportsVariableSizeIv, supportsVariableSizeKey
-
-
-
-
Method Detail
-
checkSupportedMode
void checkSupportedMode(OpenSSLCipher.Mode mode) throws java.security.NoSuchAlgorithmException
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:
java.security.NoSuchAlgorithmException
-
allowsNonceReuse
boolean allowsNonceReuse()
Description copied from class:OpenSSLAeadCipher
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.- Overrides:
allowsNonceReuse
in classOpenSSLAeadCipher
-
checkSupportedTagLength
void checkSupportedTagLength(int tagLengthInBits) throws java.security.InvalidAlgorithmParameterException
- Overrides:
checkSupportedTagLength
in classOpenSSLAeadCipher
- Throws:
java.security.InvalidAlgorithmParameterException
-
getEVP_AEAD
long getEVP_AEAD(int keyLength) throws java.security.InvalidKeyException
- Specified by:
getEVP_AEAD
in classOpenSSLAeadCipher
- Throws:
java.security.InvalidKeyException
-
-