Package org.bouncycastle.jcajce.spec
Class KTSWithKEMKWSKeySpec
- java.lang.Object
-
- org.bouncycastle.jcajce.spec.KTSWithKEMKWSKeySpec
-
- All Implemented Interfaces:
java.security.spec.KeySpec
public class KTSWithKEMKWSKeySpec extends java.lang.Object implements java.security.spec.KeySpec
KeySpec for use with the RSA-KTS-KEM-KWS SecretKeyFactory. The spec can be used to create a secret key with an encapsulation using the RSA-KEM-KWS format described in SP 800-56B,
-
-
Constructor Summary
Constructors Constructor Description KTSWithKEMKWSKeySpec(KTSKeySpec ktsKeySpec, java.lang.String transportedKeyAlgorithm, int transportedKeySizeInBits)
Base constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KTSKeySpec
getKTSKeySpec()
Return the base spec for the KTS step.java.lang.String
getTransportedKeyAlgorithm()
Return the algorithm name for the transported key.int
getTransportedKeySize()
Return the key size (in bits) of the transported key.
-
-
-
Constructor Detail
-
KTSWithKEMKWSKeySpec
public KTSWithKEMKWSKeySpec(KTSKeySpec ktsKeySpec, java.lang.String transportedKeyAlgorithm, int transportedKeySizeInBits)
Base constructor.- Parameters:
ktsKeySpec
- the spec for the KTS step which generates the wrapping key and the optional MAC key.transportedKeyAlgorithm
- secret key algorithm for created secret keytransportedKeySizeInBits
- secret key key size in bits for transported key.
-
-
Method Detail
-
getKTSKeySpec
public KTSKeySpec getKTSKeySpec()
Return the base spec for the KTS step.- Returns:
- the base KTS spec.
-
getTransportedKeyAlgorithm
public java.lang.String getTransportedKeyAlgorithm()
Return the algorithm name for the transported key.- Returns:
- transported key algorithm name.
-
getTransportedKeySize
public int getTransportedKeySize()
Return the key size (in bits) of the transported key.- Returns:
- the key size (in bits) of the transported key.
-
-