java.lang.Object
java.security.KeyPairGeneratorSpi
com.ibm.crypto.hdwrCCA.provider.KyberKeyPairGenerator
@Deprecated(since="21.0.11.0",
forRemoval=true)
public class KyberKeyPairGenerator
extends KeyPairGeneratorSpi
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by ML-KEM implementation. This CRYSTALS-Kyber implementation is
deprecated and will be removed in a future release, in alignment with NIST's
latest recommendations for post-quantum cryptography modernization.
Users should transition to the finalized ML-KEM standards.
This class generates CRSTALS-Kyber public/private key pairs via hardware.
An application can specify the size, the key label, the storage type and
usage type of the key pair to be generated via an instance of the
KyberKeyParameterSpec class.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of this class. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Generates a CRYSTALS-Kyber key pair via hardware.voidinitialize(int keysize, SecureRandom random) Deprecated, for removal: This API element is subject to removal in a future version.CRYSTALS-Kyber does not support key size specifications.voidinitialize(AlgorithmParameterSpec params, SecureRandom random) Deprecated, for removal: This API element is subject to removal in a future version.Initializes this KeyPairGenerator for given parameters and secure random source.
-
Constructor Details
-
KyberKeyPairGenerator
public KyberKeyPairGenerator()Deprecated, for removal: This API element is subject to removal in a future version.Creates a new instance of this class.
-
-
Method Details
-
initialize
Deprecated, for removal: This API element is subject to removal in a future version.CRYSTALS-Kyber does not support key size specifications.- Specified by:
initializein classKeyPairGeneratorSpi
-
initialize
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException Deprecated, for removal: This API element is subject to removal in a future version.Initializes this KeyPairGenerator for given parameters and secure random source.- Overrides:
initializein classKeyPairGeneratorSpi- Parameters:
params- the AlgorithmParameterSpec for this object.random- the SecureRandom object for generating random numbers.- Throws:
InvalidAlgorithmParameterException- thrown when parameter set is not recognized.
-
generateKeyPair
Deprecated, for removal: This API element is subject to removal in a future version.Generates a CRYSTALS-Kyber key pair via hardware.- Specified by:
generateKeyPairin classKeyPairGeneratorSpi- Returns:
- a KeyPair contains a pair of generated CRYSTALS-Kyber keys
- Throws:
IllegalArgumentException- in the key label formal is not valid
-