Class 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.
    • 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 key
        transportedKeySizeInBits - 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.