Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.ntru
Class Util

    java.lang.Object
      net.sf.ntru.Util

    public class Util

extends java.lang.Object

Constructor Summary
`Util()`

Method Summary
`(package private) static int` | `invert(int n, int modulus)` Calculates the inverse of n mod modulus
`(package private) static int` | `pow(int a, int b, int modulus)` Calculates a^b mod modulus

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### Util

    public Util()

Method Detail

### invert

    static int invert(int n,
                      int modulus)

  Calculates the inverse of n mod modulus

### pow

    static int pow(int a,
                   int b,
                   int modulus)

  Calculates a^b mod modulus

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD