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

org.bouncycastle.pqc.math.ntru.parameters

## Class NTRUHPS4096821

- java.lang.Object
- - org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet
  - - org.bouncycastle.pqc.math.ntru.parameters.NTRUHPSParameterSet
    - - org.bouncycastle.pqc.math.ntru.parameters.NTRUHPS4096821

-     public class NTRUHPS4096821
      extends NTRUHPSParameterSet

  NTRU-HPS parameter set with n = 821 and q = 4096.
  See Also:
    `NTRUHPSParameterSet`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NTRUHPS4096821()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Polynomial` | `createPolynomial()` Creates a polynomial based on this parameter set.

    - ### Methods inherited from class org.bouncycastle.pqc.math.ntru.parameters.NTRUHPSParameterSet

      `sampleFgBytes, sampleRmBytes, weight`

    - ### Methods inherited from class org.bouncycastle.pqc.math.ntru.parameters.NTRUParameterSet

      `logQ, n, ntruCiphertextBytes, ntruPublicKeyBytes, ntruSecretKeyBytes, owcpaBytes, owcpaMsgBytes, owcpaPublicKeyBytes, owcpaSecretKeyBytes, packDegree, packTrinaryBytes, prfKeyBytes, q, sampleFixedTypeBytes, sampleIidBytes, seedBytes, sharedKeyBytes`

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

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

- - ### Constructor Detail

    - #### NTRUHPS4096821

          public NTRUHPS4096821()

  - ### Method Detail

    - #### createPolynomial

          public Polynomial createPolynomial()

      Description copied from class: `NTRUParameterSet`
      Creates a polynomial based on this parameter set.
      Overrides:
        `createPolynomial` in class `NTRUHPSParameterSet`
      Returns:
        an instance of `Polynomial`