public class RsaKemAlgorithmParameters
extends java.security.AlgorithmParametersSpi
This class represents the Algorithm Parameters of the RsaKem.
According to ISO/IEC 18033-2 the encoding of RsaKemParameters has two components, namely:
RsaKemParameters ::= SEQUENCE { keyDerivationFunction ALGORITHM, keyLength KeyLength } KeyLength ::= INTEGER(1..MAX)
Constructor and Description |
---|
RsaKemAlgorithmParameters() |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
engineGetEncoded() |
protected byte[] |
engineGetEncoded(java.lang.String format) |
protected java.security.spec.AlgorithmParameterSpec |
engineGetParameterSpec(java.lang.Class paramSpec) |
protected void |
engineInit(java.security.spec.AlgorithmParameterSpec paramSpec)
Initializes the Algorithm Parameters with a respective instance of RsaKemAlgorithmParameterSpec.
|
protected void |
engineInit(byte[] params)
Decodes an ASN.1 representation of RsaKem Algorithm Parameters.
|
protected void |
engineInit(byte[] params,
java.lang.String format) |
protected java.lang.String |
engineToString() |
protected void engineInit(java.security.spec.AlgorithmParameterSpec paramSpec) throws java.security.spec.InvalidParameterSpecException
engineInit
in class java.security.AlgorithmParametersSpi
paramSpec
- an instance of RsaKemAlgorithmParameterSpecjava.security.spec.InvalidParameterSpecException
- if the provided object is inappropriate
to initialize the Algorithm Parameters.protected void engineInit(byte[] params) throws java.io.IOException
engineInit
in class java.security.AlgorithmParametersSpi
params
- encoding of some parametersjava.io.IOException
- if the provided parameters are corrupt or not decodable
by the implementation. Note that only ASN.1 is supported.protected void engineInit(byte[] params, java.lang.String format) throws java.io.IOException
engineInit
in class java.security.AlgorithmParametersSpi
java.io.IOException
protected java.security.spec.AlgorithmParameterSpec engineGetParameterSpec(java.lang.Class paramSpec) throws java.security.spec.InvalidParameterSpecException
engineGetParameterSpec
in class java.security.AlgorithmParametersSpi
java.security.spec.InvalidParameterSpecException
protected byte[] engineGetEncoded() throws java.io.IOException
engineGetEncoded
in class java.security.AlgorithmParametersSpi
java.io.IOException
protected byte[] engineGetEncoded(java.lang.String format) throws java.io.IOException
engineGetEncoded
in class java.security.AlgorithmParametersSpi
java.io.IOException
protected java.lang.String engineToString()
engineToString
in class java.security.AlgorithmParametersSpi