Class QTESLAKeyPairGenerator
- java.lang.Object
-
- org.bouncycastle.pqc.crypto.qtesla.QTESLAKeyPairGenerator
-
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
public final class QTESLAKeyPairGenerator extends java.lang.Object implements AsymmetricCipherKeyPairGenerator
Key-pair generator for qTESLA keys.
-
-
Constructor Summary
Constructors Constructor Description QTESLAKeyPairGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsymmetricCipherKeyPair
generateKeyPair()
Generate a key-pair.void
init(KeyGenerationParameters param)
Initialize the generator with a security category and a source of randomness.
-
-
-
Method Detail
-
init
public void init(KeyGenerationParameters param)
Initialize the generator with a security category and a source of randomness.- Specified by:
init
in interfaceAsymmetricCipherKeyPairGenerator
- Parameters:
param
- aQTESLAKeyGenerationParameters
object.
-
generateKeyPair
public AsymmetricCipherKeyPair generateKeyPair()
Generate a key-pair.- Specified by:
generateKeyPair
in interfaceAsymmetricCipherKeyPairGenerator
- Returns:
- a matching key-pair consisting of (QTESLAPublicKeyParameters, QTESLAPrivateKeyParameters).
-
-