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
-
Method Summary
Modifier and TypeMethodDescriptionGenerate a key-pair.void
init
(KeyGenerationParameters param) Initialize the generator with a security category and a source of randomness.
-
Constructor Details
-
Method Details
-
init
Initialize the generator with a security category and a source of randomness.- Specified by:
init
in interfaceAsymmetricCipherKeyPairGenerator
- Parameters:
param
- aQTESLAKeyGenerationParameters
object.
-
generateKeyPair
Generate a key-pair.- Specified by:
generateKeyPair
in interfaceAsymmetricCipherKeyPairGenerator
- Returns:
- a matching key-pair consisting of (QTESLAPublicKeyParameters, QTESLAPrivateKeyParameters).
-