Package org.conscrypt
Class GCMParameters
- java.lang.Object
-
- java.security.AlgorithmParametersSpi
-
- org.conscrypt.GCMParameters
-
@Internal public final class GCMParameters extends AlgorithmParametersSpi
GCM parameters used during an ciphering operation withOpenSSLCipher. This class is used internally for backward compatibility with Android versions that did not have theGCMParameterSpecclass, in addition to being the implementation of the GCM AlgorithmParameters implementation.The only supported encoding format is ASN.1, as specified in RFC 5084 section 3.2.
-
-
Constructor Summary
Constructors Constructor Description GCMParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]engineGetEncoded()protected byte[]engineGetEncoded(String format)protected <T extends AlgorithmParameterSpec>
TengineGetParameterSpec(Class<T> aClass)protected voidengineInit(byte[] bytes)protected voidengineInit(byte[] bytes, String format)protected voidengineInit(AlgorithmParameterSpec algorithmParameterSpec)protected StringengineToString()
-
-
-
Method Detail
-
engineInit
protected void engineInit(AlgorithmParameterSpec algorithmParameterSpec) throws InvalidParameterSpecException
- Specified by:
engineInitin classAlgorithmParametersSpi- Throws:
InvalidParameterSpecException
-
engineInit
protected void engineInit(byte[] bytes) throws IOException- Specified by:
engineInitin classAlgorithmParametersSpi- Throws:
IOException
-
engineInit
protected void engineInit(byte[] bytes, String format) throws IOException- Specified by:
engineInitin classAlgorithmParametersSpi- Throws:
IOException
-
engineGetParameterSpec
protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> aClass) throws InvalidParameterSpecException
- Specified by:
engineGetParameterSpecin classAlgorithmParametersSpi- Throws:
InvalidParameterSpecException
-
engineGetEncoded
protected byte[] engineGetEncoded() throws IOException- Specified by:
engineGetEncodedin classAlgorithmParametersSpi- Throws:
IOException
-
engineGetEncoded
protected byte[] engineGetEncoded(String format) throws IOException
- Specified by:
engineGetEncodedin classAlgorithmParametersSpi- Throws:
IOException
-
engineToString
protected String engineToString()
- Specified by:
engineToStringin classAlgorithmParametersSpi
-
-