public class HQCKeyPairGeneratorSpi extends KeyPairGeneratorSpi
[0] Carlos Aguilar Melchor, Nicolas Aragon, Slim Bettaieb, Loïc Bidoux, Olivier Blazy, Jurjen Bos, Jean-Christophe Deneuville, Arnaud Dion, Philippe Gaborit, Jérôme Lacan, Edoardo Persichetti, Jean-Marc Robert, Pascal Véron and Gilles Zémor HQC (30.04.2023) – Submission to round 4 of the NIST post-quantum project.
Constructor and Description |
---|
HQCKeyPairGeneratorSpi() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
generateKeyPair()
Generates a KeyPair consisting of a HQCPrivateKey
and HQCPublicKey depending on the initialization
of this object.
|
void |
initialize(AlgorithmParameterSpec params,
SecureRandom random)
Initializes the key pair generator using the specified parameter set
and source of randomness.
|
void |
initialize(int securityLevel,
SecureRandom random)
Initializes the key pair generator using the specified NIST security level
and source of randomness.
|
public void initialize(int securityLevel, SecureRandom random)
initialize
in class KeyPairGeneratorSpi
securityLevel
- the NIST security level, defining the parameter set, to generate the keys.random
- a source of randomIllegalArgumentException
- if the given security level is inappropriate for this key pair generator.public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException
initialize
in class KeyPairGeneratorSpi
params
- the parameter set used to generate the keys.random
- a source of randomInvalidAlgorithmParameterException
- if the given this.params are inappropriate for this key pair generator.public KeyPair generateKeyPair()
generateKeyPair
in class KeyPairGeneratorSpi
Copyright © 2020–2024 Stiftung SIC. All rights reserved.