public final class MLDSAKeyPairGeneratorSpi extends KeyPairGeneratorSpi
References: [0] FIPS 204
Constructor and Description |
---|
MLDSAKeyPairGeneratorSpi() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
generateKeyPair()
Generates a KeyPair consisting of a MLDSAPrivateKey and MLDSAPublicKey depending on the initialization of this object.
|
void |
initialize(AlgorithmParameterSpec algorithmParameterSpec,
SecureRandom random)
Initializes the key pair generator using the specified parameters and the specified
SecureRandom instance. |
void |
initialize(int keySize,
SecureRandom random)
Initializes this KeyPairGenerator with the given key size and PRNG.
|
public void initialize(AlgorithmParameterSpec algorithmParameterSpec, SecureRandom random) throws InvalidAlgorithmParameterException
SecureRandom
instance.initialize
in class KeyPairGeneratorSpi
algorithmParameterSpec
- has to be of type MLDSAAlgorithmParameterSpec
random
- the NIST SP800-90 PRNG; if null
an appropriate NIST
* SP800-90 PRNG will be selected automaticallyInvalidAlgorithmParameterException
- thrown when the AlgorithmParameterSpec is not an instance of MLDSAAlgorithmParameterSpec
public void initialize(int keySize, SecureRandom random)
initialize
in class KeyPairGeneratorSpi
keySize
- the key size (in bits), either 10496, 15616 or 20736 corresponding to the NIST
security levels 2,3 and 5 respectivelyrandom
- the NIST SP800-90 PRNG; if null
an appropriate NIST
SP800-90 PRNG will be selected automaticallyIllegalArgumentException
- if the given key size is not 10496, 15616 or 20736for more information obout the security levels defined by NIST
public KeyPair generateKeyPair()
generateKeyPair
in class KeyPairGeneratorSpi
MLDSAPublicKey
and a
MLDSAPrivateKey
.Copyright © 2020–2024 Stiftung SIC. All rights reserved.