Package org.conscrypt
Class IvParameters
- java.lang.Object
-
- java.security.AlgorithmParametersSpi
-
- org.conscrypt.IvParameters
-
- Direct Known Subclasses:
IvParameters.AES
,IvParameters.ChaCha20
,IvParameters.DESEDE
@Internal public class IvParameters extends java.security.AlgorithmParametersSpi
An implementation ofAlgorithmParameters
that contains only an IV. The supported encoding formats are ASN.1 (primary) and RAW.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IvParameters.AES
static class
IvParameters.ChaCha20
static class
IvParameters.DESEDE
-
Field Summary
Fields Modifier and Type Field Description private byte[]
iv
-
Constructor Summary
Constructors Constructor Description IvParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
engineGetEncoded()
protected byte[]
engineGetEncoded(java.lang.String format)
protected <T extends java.security.spec.AlgorithmParameterSpec>
TengineGetParameterSpec(java.lang.Class<T> aClass)
protected void
engineInit(byte[] bytes)
protected void
engineInit(byte[] bytes, java.lang.String format)
protected void
engineInit(java.security.spec.AlgorithmParameterSpec algorithmParameterSpec)
protected java.lang.String
engineToString()
-
-
-
Method Detail
-
engineInit
protected void engineInit(java.security.spec.AlgorithmParameterSpec algorithmParameterSpec) throws java.security.spec.InvalidParameterSpecException
- Specified by:
engineInit
in classjava.security.AlgorithmParametersSpi
- Throws:
java.security.spec.InvalidParameterSpecException
-
engineInit
protected void engineInit(byte[] bytes) throws java.io.IOException
- Specified by:
engineInit
in classjava.security.AlgorithmParametersSpi
- Throws:
java.io.IOException
-
engineInit
protected void engineInit(byte[] bytes, java.lang.String format) throws java.io.IOException
- Specified by:
engineInit
in classjava.security.AlgorithmParametersSpi
- Throws:
java.io.IOException
-
engineGetParameterSpec
protected <T extends java.security.spec.AlgorithmParameterSpec> T engineGetParameterSpec(java.lang.Class<T> aClass) throws java.security.spec.InvalidParameterSpecException
- Specified by:
engineGetParameterSpec
in classjava.security.AlgorithmParametersSpi
- Throws:
java.security.spec.InvalidParameterSpecException
-
engineGetEncoded
protected byte[] engineGetEncoded() throws java.io.IOException
- Specified by:
engineGetEncoded
in classjava.security.AlgorithmParametersSpi
- Throws:
java.io.IOException
-
engineGetEncoded
protected byte[] engineGetEncoded(java.lang.String format) throws java.io.IOException
- Specified by:
engineGetEncoded
in classjava.security.AlgorithmParametersSpi
- Throws:
java.io.IOException
-
engineToString
protected java.lang.String engineToString()
- Specified by:
engineToString
in classjava.security.AlgorithmParametersSpi
-
-