Class KyberDerivationInput

java.lang.Object
com.ibm.crypto.hdwrCCA.provider.KyberDerivationInput

@Deprecated(since="21.0.11.0", forRemoval=true) public class KyberDerivationInput extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
This KyberDerivationInput implementation is deprecated and will be removed in a future release. This is in alignment with the latest NIST recommendations for post‑quantum cryptography modernization. Users should transition to the finalized ML-KEM standards.
This class represents the KyberDerivationInput defined for CRYSTALS-Kyber keys to perform a CRYSTALS-Kyber key agreement .
  • Constructor Summary

    Constructors
    Constructor
    Description
    KyberDerivationInput(SecretKey aesKey, KyberPublicKey kyberPublicKey, byte[] iv)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a KyberDerivationInput object and accepts the AES key, Kyber key, and initialization vector needed to perform a CSNDPKE service.
    KyberDerivationInput(SecretKey aesKey, KyberPublicKey kyberPublicKey, IvParameterSpec ivParameterSpec)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a KyberDerivationInput object and accepts the AES key, Kyber key, and initialization vector needed to perform a CSNDPKE service.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Calls the CSNDPKE callable service to create the shared key derivation input provided by ICSF.
    byte[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the encrypted AES value
    byte[]
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the encrypted Kyber value

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • KyberDerivationInput

      public KyberDerivationInput(SecretKey aesKey, KyberPublicKey kyberPublicKey, byte[] iv)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a KyberDerivationInput object and accepts the AES key, Kyber key, and initialization vector needed to perform a CSNDPKE service.
      Parameters:
      aesKey - an AES CIPHER key in a CCA key token
      kyberPublicKey - a Kyber public key
      iv - an initialiation vector
    • KyberDerivationInput

      public KyberDerivationInput(SecretKey aesKey, KyberPublicKey kyberPublicKey, IvParameterSpec ivParameterSpec)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a KyberDerivationInput object and accepts the AES key, Kyber key, and initialization vector needed to perform a CSNDPKE service.
      Parameters:
      aesKey - an AES CIPHER key in a CCA key token
      kyberPublicKey - a Kyber public key
      ivParameterSpec - an initialiation vector
  • Method Details

    • encrypt

      public void encrypt() throws RuntimeException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Calls the CSNDPKE callable service to create the shared key derivation input provided by ICSF.
      Throws:
      RuntimeException
    • getEncryptedAesValue

      public byte[] getEncryptedAesValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the encrypted AES value
      Returns:
      the encrypted AES value
    • getEncryptedKyberValue

      public byte[] getEncryptedKyberValue()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the encrypted Kyber value
      Returns:
      the encrypted Kyber value