Class KTSWithKEMKWSKeySpec

java.lang.Object
org.bouncycastle.jcajce.spec.KTSWithKEMKWSKeySpec
All Implemented Interfaces:
KeySpec

public class KTSWithKEMKWSKeySpec extends Object implements 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 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 key
      transportedKeySizeInBits - secret key key size in bits for transported key.
  • Method Details

    • getKTSKeySpec

      public KTSKeySpec getKTSKeySpec()
      Return the base spec for the KTS step.
      Returns:
      the base KTS spec.
    • getTransportedKeyAlgorithm

      public 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.