java.lang.Object
com.ibm.crypto.hdwrCCA.provider.KyberDerivationInput
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
ConstructorsConstructorDescriptionKyberDerivationInput(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 TypeMethodDescriptionvoidencrypt()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 valuebyte[]Deprecated, for removal: This API element is subject to removal in a future version.Returns the encrypted Kyber value
-
Constructor Details
-
KyberDerivationInput
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 tokenkyberPublicKey- a Kyber public keyiv- 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 tokenkyberPublicKey- a Kyber public keyivParameterSpec- an initialiation vector
-
-
Method Details
-
encrypt
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
-