public final class SLHDSAKeyPairGenerator extends KeyPairGeneratorSpi
| Constructor and Description |
|---|
SLHDSAKeyPairGenerator() |
| Modifier and Type | Method and Description |
|---|---|
KeyPair |
generateKeyPair()
Generates a KeyPair consisting of a SLHDSAPrivateKey and SLHDSAPublicKey depending on the initialisation of this object.
|
void |
initialize(AlgorithmParameterSpec algorithmParameterSpec,
SecureRandom random)
Initializes the key pair generator using the specified parameter set and source of randomness.
|
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
initialize in class KeyPairGeneratorSpialgorithmParameterSpec - algorithm parameter specification.random - secure random.InvalidAlgorithmParameterException - if algorithmParameterSpec is not an instance of SLHDSAAlgorithmParameterSpec.public void initialize(int keySize,
SecureRandom random)
initialize in class KeyPairGeneratorSpikeySize - public key size in bits, corresponding to the NIST security levels 1, 3 and 5 respectivelyrandom - source of randomness, if null, SecureRandom from the JCE Provider is used later onIllegalArgumentException - for invalid key sizepublic KeyPair generateKeyPair()
SLHDSAKeyPairGenerator was not initialized, the implementation defaults to SLHDSAAlgorithmParameterSpec.generateKeyPair in class KeyPairGeneratorSpiCopyright © 2020–2025 Stiftung SIC. All rights reserved.