NTRUEncryptionKeyPairGenerator (Bouncy Castle Library 1.52 API Specification)

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 and Description
    `NTRUEncryptionKeyPairGenerator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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