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