public final class DilithiumKeyPairGeneratorSpi extends KeyPairGeneratorSpi
[0] Bai, Ducas, Kiltz, Lepoint, Lyubashevsky, Schwabe, Seiler and Stehlé: "CRYSTALS-Dilithium" - 8 February, 2021
Constructor and Description |
---|
DilithiumKeyPairGeneratorSpi() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
generateKeyPair()
Generates a KeyPair consisting of a DilithiumPrivateKey and DilithiumPublicKey depending on the initialization 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 KeyPairGeneratorSpi
algorithmParameterSpec
- random
- InvalidAlgorithmParameterException
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 source of randomness, if null, SecureRandom from the JCE Provider is usedIllegalArgumentException
- if the given key size is not 10496, 15616 or 20736public KeyPair generateKeyPair()
DilithiumKeyPairGeneratorSpi
was not initialized, the implementation defaults to DilithiumAlgorithmParameterSpec.generateKeyPair
in class KeyPairGeneratorSpi
Copyright © 2020–2023 Stiftung SIC. All rights reserved.