public final class MLDSAKeyPairGeneratorSpi extends KeyPairGeneratorSpi
References:
Constructor and Description |
---|
MLDSAKeyPairGeneratorSpi() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
generateKeyPair() |
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)
Not implemented, returns a PQRuntimeException
|
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
public KeyPair generateKeyPair()
generateKeyPair
in class KeyPairGeneratorSpi
Copyright © 2020–2025 Stiftung SIC. All rights reserved.