Package org.bouncycastle.jcajce.spec
Class KTSWithKEMKWSKeySpec
java.lang.Object
org.bouncycastle.jcajce.spec.KTSWithKEMKWSKeySpec
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionKTSWithKEMKWSKeySpec
(KTSKeySpec ktsKeySpec, String transportedKeyAlgorithm, int transportedKeySizeInBits) Base constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturn the base spec for the KTS step.Return the algorithm name for the transported key.int
Return the key size (in bits) of the transported key.
-
Constructor Details
-
KTSWithKEMKWSKeySpec
public KTSWithKEMKWSKeySpec(KTSKeySpec ktsKeySpec, 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 Details
-
getKTSKeySpec
Return the base spec for the KTS step.- Returns:
- the base KTS spec.
-
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.
-