Class NTRUEncryptionKeyPairGenerator
java.lang.Object
org.bouncycastle.pqc.legacy.crypto.ntru.NTRUEncryptionKeyPairGenerator
- All Implemented Interfaces:
AsymmetricCipherKeyPairGenerator
public class NTRUEncryptionKeyPairGenerator
extends Object
implements AsymmetricCipherKeyPairGenerator
Generates key pairs.
The parameter p is hardcoded to 3.
The parameter p is hardcoded to 3.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGenerates a new encryption key pair.void
init
(KeyGenerationParameters param) Constructs a new instance with a set of encryption parameters.
-
Constructor Details
-
NTRUEncryptionKeyPairGenerator
public NTRUEncryptionKeyPairGenerator()
-
-
Method Details
-
init
Constructs a new instance with a set of encryption parameters.- Specified by:
init
in interfaceAsymmetricCipherKeyPairGenerator
- Parameters:
param
- encryption parameters
-
generateKeyPair
Generates a new encryption key pair.- Specified by:
generateKeyPair
in interfaceAsymmetricCipherKeyPairGenerator
- Returns:
- a key pair
-