Class GCMParameters
java.lang.Object
java.security.AlgorithmParametersSpi
org.conscrypt.GCMParameters
GCM parameters used during an ciphering operation with
OpenSSLCipher.
This class is used internally for backward compatibility with Android versions
that did not have the GCMParameterSpec class, 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]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 String
-
Constructor Details
-
GCMParameters
public GCMParameters()
-
-
Method Details
-
engineInit
protected void engineInit(AlgorithmParameterSpec algorithmParameterSpec) throws InvalidParameterSpecException - Specified by:
engineInitin classAlgorithmParametersSpi- Throws:
InvalidParameterSpecException
-
engineInit
- Specified by:
engineInitin classAlgorithmParametersSpi- Throws:
IOException
-
engineInit
- 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
- Specified by:
engineGetEncodedin classAlgorithmParametersSpi- Throws:
IOException
-
engineGetEncoded
- Specified by:
engineGetEncodedin classAlgorithmParametersSpi- Throws:
IOException
-
engineToString
- Specified by:
engineToStringin classAlgorithmParametersSpi
-