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

org.bouncycastle.pqc.crypto.ntru

## Class NTRUPrivateKeyParameters

- java.lang.Object
- - org.bouncycastle.crypto.params.AsymmetricKeyParameter
  - - org.bouncycastle.pqc.crypto.ntru.NTRUKeyParameters
    - - org.bouncycastle.pqc.crypto.ntru.NTRUPrivateKeyParameters

- All Implemented Interfaces:
    CipherParameters

      public class NTRUPrivateKeyParameters
      extends NTRUKeyParameters

  NTRU private key parameter class.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NTRUPrivateKeyParameters(NTRUParameters params, byte[] key)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getEncoded()` Get the encoding of the private key.
    `byte[]` | `getPrivateKey()` Get private key.

    - ### Methods inherited from class org.bouncycastle.pqc.crypto.ntru.NTRUKeyParameters

      `getParameters`

    - ### Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter

      `isPrivate`

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

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

- - ### Constructor Detail

    - #### NTRUPrivateKeyParameters

          public NTRUPrivateKeyParameters(NTRUParameters params,
                                          byte[] key)

  - ### Method Detail

    - #### getPrivateKey

          public byte[] getPrivateKey()

      Get private key.
      Returns:
        a byte array containing private key

    - #### getEncoded

          public byte[] getEncoded()

      Get the encoding of the private key.
      Returns:
        a byte array containing private key