Bouncy Castle Cryptography Library 1.49

org.bouncycastle.pqc.crypto.ntru
Class NTRUEncryptionKeyPairGenerator

java.lang.Object
  extended by 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
NTRUEncryptionKeyPairGenerator()
           
 
Method Summary
 AsymmetricCipherKeyPair generateKeyPair()
          Generates a new encryption key pair.
 void init(KeyGenerationParameters param)
          Constructs a new instance with a set of encryption parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NTRUEncryptionKeyPairGenerator

public NTRUEncryptionKeyPairGenerator()
Method Detail

init

public void init(KeyGenerationParameters param)
Constructs a new instance with a set of encryption parameters.

Specified by:
init in interface AsymmetricCipherKeyPairGenerator
Parameters:
param - encryption parameters

generateKeyPair

public AsymmetricCipherKeyPair generateKeyPair()
Generates a new encryption key pair.

Specified by:
generateKeyPair in interface AsymmetricCipherKeyPairGenerator
Returns:
a key pair

Bouncy Castle Cryptography Library 1.49