Class MLKEMKeyPairGeneratorSpi
java.lang.Object
java.security.KeyPairGeneratorSpi
java.security.KeyPairGenerator
org.bouncycastle.jcajce.provider.asymmetric.mlkem.MLKEMKeyPairGeneratorSpi
- Direct Known Subclasses:
MLKEMKeyPairGeneratorSpi.MLKEM1024, MLKEMKeyPairGeneratorSpi.MLKEM512, MLKEMKeyPairGeneratorSpi.MLKEM768
ML-KEM (FIPS 203) key pair generation. A generator obtained as "ML-KEM" and not initialised
produces ML-KEM-768 keys, the parameter set NIST recommends (NIST IR 8547). An initialisation
that gives no SecureRandom, including this default and a generator obtained under a parameter set
name such as "ML-KEM-512", draws the key from the
default SecureRandom set on CryptoServicesRegistrar, if one has been set, and otherwise from the provider's
256 bit DEFAULT DRBG.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(int strength, SecureRandom random) voidinitialize(AlgorithmParameterSpec params) voidinitialize(AlgorithmParameterSpec params, SecureRandom random) Methods inherited from class KeyPairGenerator
genKeyPair, getAlgorithm, getInstance, getInstance, getInstance, getProvider, initialize
-
Constructor Details
-
MLKEMKeyPairGeneratorSpi
public MLKEMKeyPairGeneratorSpi() -
MLKEMKeyPairGeneratorSpi
-
-
Method Details
-
initialize
- Overrides:
initializein classKeyPairGenerator
-
initialize
- Overrides:
initializein classKeyPairGenerator- Throws:
InvalidAlgorithmParameterException
-
initialize
public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException - Overrides:
initializein classKeyPairGenerator- Throws:
InvalidAlgorithmParameterException
-
generateKeyPair
- Overrides:
generateKeyPairin classKeyPairGenerator
-