Package org.bouncycastle.math.raw

## Class Mod

- java.lang.Object
- - org.bouncycastle.math.raw.Mod

-     public abstract class Mod
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Mod()` |

  - ### Method Summary

    All Methods Static Methods Concrete Methods Deprecated Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static void` | `add​(int[] p, int[] x, int[] y, int[] z)` | Deprecated. Will be removed.
    `static void` | `checkedModOddInverse​(int[] m, int[] x, int[] z)` |
    `static void` | `checkedModOddInverseVar​(int[] m, int[] x, int[] z)` |
    `static int` | `inverse32​(int d)` |
    `static void` | `invert​(int[] m, int[] x, int[] z)` | Deprecated. Use `checkedModOddInverseVar(int[], int[], int[])` instead.
    `static int` | `modOddInverse​(int[] m, int[] x, int[] z)` |
    `static boolean` | `modOddInverseVar​(int[] m, int[] x, int[] z)` |
    `static int[]` | `random​(int[] p)` |
    `static void` | `subtract​(int[] p, int[] x, int[] y, int[] z)` | Deprecated. Will be removed.

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

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

- - ### Constructor Detail

    - #### Mod

          public Mod()

  - ### Method Detail

    - #### add

          public static void add​(int[] p,
                                 int[] x,
                                 int[] y,
                                 int[] z)

      Deprecated.
      Will be removed.

    - #### checkedModOddInverse

          public static void checkedModOddInverse​(int[] m,
                                                  int[] x,
                                                  int[] z)

    - #### checkedModOddInverseVar

          public static void checkedModOddInverseVar​(int[] m,
                                                     int[] x,
                                                     int[] z)

    - #### inverse32

          public static int inverse32​(int d)

    - #### invert

          public static void invert​(int[] m,
                                    int[] x,
                                    int[] z)

      Deprecated.
      Use `checkedModOddInverseVar(int[], int[], int[])` instead.

    - #### modOddInverse

          public static int modOddInverse​(int[] m,
                                          int[] x,
                                          int[] z)

    - #### modOddInverseVar

          public static boolean modOddInverseVar​(int[] m,
                                                 int[] x,
                                                 int[] z)

    - #### random

          public static int[] random​(int[] p)

    - #### subtract

          public static void subtract​(int[] p,
                                      int[] x,
                                      int[] y,
                                      int[] z)

      Deprecated.
      Will be removed.