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

org.bouncycastle.pqc.crypto.ntruprime

## Class SNTRUPrimeKeyGenerationParameters

- java.lang.Object
- - org.bouncycastle.crypto.KeyGenerationParameters
  - - org.bouncycastle.pqc.crypto.ntruprime.SNTRUPrimeKeyGenerationParameters

-     public class SNTRUPrimeKeyGenerationParameters
      extends KeyGenerationParameters

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SNTRUPrimeKeyGenerationParameters(java.security.SecureRandom random, SNTRUPrimeParameters sntrupParams)` initialise the generator with a source of randomness and a strength (in bits).

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `SNTRUPrimeParameters` | `getSntrupParams()`

    - ### 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

    - #### SNTRUPrimeKeyGenerationParameters

          public SNTRUPrimeKeyGenerationParameters(java.security.SecureRandom random,
                                                   SNTRUPrimeParameters sntrupParams)

      initialise the generator with a source of randomness and a strength (in bits).
      Parameters:
        `random` - the random byte source.
        `sntrupParams` - Streamlined NTRU Prime parameters

  - ### Method Detail

    - #### getSntrupParams

          public SNTRUPrimeParameters getSntrupParams()