public class KyberKeyPairGeneratorSpi extends KeyPairGeneratorSpi
[0] Roberto Avanzi, Joppe Bos, Léo Ducas, Eike Kiltz, Tancrède Lepoint, Vadim Lyubashevsky, John M. Schanck, Peter Schwabe, Gregor Seiler, and Damien Stehlé: " CRYSTALS-Kyber (version 3.02)" – Submission to round 3 of the NIST post-quantum project. [1] @see NIST.FIPS.203
Constructor and Description |
---|
KyberKeyPairGeneratorSpi() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
generateKeyPair()
Generates a KeyPair consisting of a KyberPrivateKey
and KyberPublicKey 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 parameters are inappropriate for this key pair generator.public KeyPair generateKeyPair()
generateKeyPair
in class KeyPairGeneratorSpi
Copyright © 2020–2023 Stiftung SIC. All rights reserved.