Package org.bouncycastle.pqc.crypto.ntru

## Class NTRUSigningPrivateKeyParameters.Basis

- java.lang.Object
- - org.bouncycastle.pqc.crypto.ntru.NTRUSigningPrivateKeyParameters.Basis

- Direct Known Subclasses:
    `NTRUSigningKeyPairGenerator.FGBasis`
  Enclosing class:
    NTRUSigningPrivateKeyParameters

      public static class NTRUSigningPrivateKeyParameters.Basis
      extends java.lang.Object

  A NtruSign basis. Contains three polynomials `f, f', h`.

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `Polynomial` | `f` |
    `Polynomial` | `fPrime` |
    `IntegerPolynomial` | `h` |

  - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `Basis​(Polynomial f, Polynomial fPrime, IntegerPolynomial h, NTRUSigningKeyGenerationParameters params)` | Constructs a new basis from polynomials `f, f', h`.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(java.lang.Object obj)` |
    `int` | `hashCode()` |

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

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

- - ### Field Detail

    - #### f

          public Polynomial f

    - #### fPrime

          public Polynomial fPrime

    - #### h

          public IntegerPolynomial h

  - ### Constructor Detail

    - #### Basis

          protected Basis​(Polynomial f,
                          Polynomial fPrime,
                          IntegerPolynomial h,
                          NTRUSigningKeyGenerationParameters params)

      Constructs a new basis from polynomials `f, f', h`.
      Parameters:
        `f` -
        `fPrime` -
        `h` -
        `params` - NtruSign parameters

  - ### Method Detail

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`

    - #### equals

          public boolean equals​(java.lang.Object obj)

      Overrides:
        `equals` in class `java.lang.Object`