GF2mField
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static int | |
| public static int | |
| public static int | |
| public static int | Returns: GCD(p, q)polinomial p, int polinomial q)Return the greatest common divisor of two polynomials |
| public static int | Returns: irreducible polynomial ppolynomial degree deg)Creates irreducible polynomial with degree d |
| public static boolean | Returns: true if p is irreducible and false otherwisepolinomial p)Checking polynomial for irreducibility |
| public static int | Returns: a * b mod rthe first polynomial a, int the second polynomial b, int the reduction polynomial r)Compute the product of two polynomials modulo a third polynomial. |
| public static long | |
| public static int | Returns: p mod qdividend p, int divisor q)Return the remainder of a polynomial division of two polynomials. |
| public static int |
| PolynomialRingGF2 | back to summary |
|---|---|
| private PolynomialRingGF2() Default constructor (private). | |
| add | back to summary |
|---|---|
| public static int add(int p, int q) Return sum of two polyomials
| |
| degree | back to summary |
|---|---|
| public static int degree(int p) Return the degree of a polynomial
| |
| degree | back to summary |
|---|---|
| public static int degree(long p) Return the degree of a polynomial
| |
| gcd | back to summary |
|---|---|
| public static int gcd(int p, int q) Return the greatest common divisor of two polynomials
| |
| getIrreduciblePolynomial | back to summary |
|---|---|
| public static int getIrreduciblePolynomial(int deg) Creates irreducible polynomial with degree d
| |
| isIrreducible | back to summary |
|---|---|
| public static boolean isIrreducible(int p) Checking polynomial for irreducibility
| |
| modMultiply | back to summary |
|---|---|
| public static int modMultiply(int a, int b, int r) Compute the product of two polynomials modulo a third polynomial.
| |
| multiply | back to summary |
|---|---|
| public static long multiply(int p, int q) Return product of two polynomials
| |
| remainder | back to summary |
|---|---|
| public static int remainder(int p, int q) Return the remainder of a polynomial division of two polynomials.
| |
| rest | back to summary |
|---|---|
| public static int rest(long p, int q) Return the rest of devision two polynomials
| |