- <init>
Creates a new GF2Polynomial by cloneing the given GF2Polynomial b.
- add
Adds two GF2Polynomials, this and b, and returns the result. this and b can be
of different size.
- addToThis
Adds b to this GF2Polynomial and assigns the result to this GF2Polynomial. b can
be of different siz
- assignAll
Sets all Bits to 1.
- assignOne
Sets the LSB to 1 and all other to 0, assigning 'one' to this GF2Polynomial.
- assignX
Sets Bit 1 to 1 and all other to 0, assigning 'x' to this GF2Polynomial.
- assignZero
Resets all bits to zero.
- doShiftBlocksLeft
Shifts left this GF2Polynomial's value blockwise b blocks resulting in a
shift-left by b*32. This me
- equals
Returns true if two GF2Polynomials have the same size and value and thus are
equal.
- expandN
Expands len and int[] value to i. This is useful before adding two
GF2Polynomials of different size.
- gcd
Returns the greatest common divisor of this and g in a new GF2Polynomial.
- getLength
Returns the length of this GF2Polynomial. The length can be greater than the
degree. To get the degr