NTRUKeyGenerationParameters (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.pqc.crypto.ntru

## Class NTRUKeyGenerationParameters

- java.lang.Object
- - org.bouncycastle.crypto.KeyGenerationParameters
  - - org.bouncycastle.pqc.crypto.ntru.NTRUKeyGenerationParameters

-     public class NTRUKeyGenerationParameters
      extends KeyGenerationParameters

  Key generation parameters for NTRU.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NTRUKeyGenerationParameters(java.security.SecureRandom random, NTRUParameters params)` Constructor.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `NTRUParameters` | `getParameters()`

    - ### Methods inherited from class org.bouncycastle.crypto.KeyGenerationParameters

      `getRandom, getStrength`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### NTRUKeyGenerationParameters

          public NTRUKeyGenerationParameters(java.security.SecureRandom random,
                                             NTRUParameters params)

      Constructor.
      Parameters:
        `random` - a secure random number generator
        `params` - an NTRU parameter set

  - ### Method Detail

    - #### getParameters

          public NTRUParameters getParameters()

      Returns:
        the NTRU parameter set used for this key generation