Class QTESLAKeyPairGenerator
java.lang.Object
org.bouncycastle.pqc.legacy.crypto.qtesla.QTESLAKeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
public final class QTESLAKeyPairGenerator
extends Object
implements AsymmetricCipherKeyPairGenerator
Key-pair generator for qTESLA keys.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerate a key-pair.voidinit(KeyGenerationParameters param) Initialize the generator with a security category and a source of randomness.
-
Constructor Details
-
QTESLAKeyPairGenerator
public QTESLAKeyPairGenerator()
-
-
Method Details
-
init
Initialize the generator with a security category and a source of randomness.- Specified by:
initin interfaceAsymmetricCipherKeyPairGenerator- Parameters:
param- aQTESLAKeyGenerationParametersobject.
-
generateKeyPair
Generate a key-pair.- Specified by:
generateKeyPairin interfaceAsymmetricCipherKeyPairGenerator- Returns:
- a matching key-pair consisting of (QTESLAPublicKeyParameters, QTESLAPrivateKeyParameters).
-