- computeFieldPolynomial
Computes the field polynomial. This can take a long time for big degrees.
- computeFieldPolynomial2
Computes the field polynomial. This can take a long time for big degrees.
- computeSquaringMatrix
Computes a new squaring matrix used for fast squaring.
- getDegree
- getPc
Returns the degree of the middle coefficients of the used field pentanomial (x^n
+ x^(getPc()[2]) +
- getTc
Returns the degree of the middle coefficient of the used field trinomial (x^n +
x^(getTc()) + 1).
- isPentanomial
Returns true if the field polynomial is a pentanomial. The coefficients can be
retrieved using getPc
- isTrinomial
Returns true if the field polynomial is a trinomial. The coefficient can be
retrieved using getTc().
- testPentanomials
Tests all pentanomials of degree (n+1) until a irreducible is found and stores
the result in field p
- testRandom
Tests random polynomials of degree (n+1) until an irreducible is found and
stores the result in fiel
- testTrinomials
Tests all trinomials of degree (n+1) until a irreducible is found and stores the
result in field pol