/** * Compare this element with another object. * * @param other the other object * @return <tt>true</tt> if the two objects are equal, <tt>false</tt> * otherwise */ public boolean equals(Object other) { if (other == null || !(other instanceof GF2nPolynomialElement)) { return false; } GF2nPolynomialElement otherElem = (GF2nPolynomialElement)other; if (mField != otherElem.mField) { if (!mField.getFieldPolynomial().equals( otherElem.mField.getFieldPolynomial())) { return false; } } return polynomial.equals(otherElem.polynomial); }
/** * Compare this element with another object. * * @param other the other object * @return <tt>true</tt> if the two objects are equal, <tt>false</tt> * otherwise */ public boolean equals(Object other) { if (other == null || !(other instanceof GF2nPolynomialElement)) { return false; } GF2nPolynomialElement otherElem = (GF2nPolynomialElement)other; if (mField != otherElem.mField) { if (!mField.getFieldPolynomial().equals( otherElem.mField.getFieldPolynomial())) { return false; } } return polynomial.equals(otherElem.polynomial); }
GF2Polynomial c = new GF2Polynomial(mDegree); GF2Polynomial u = getGF2Polynomial(); GF2Polynomial v = mField.getFieldPolynomial(); GF2Polynomial h; while (true) b.addToThis(mField.getFieldPolynomial()); b.shiftRightThis();
GF2Polynomial c = new GF2Polynomial(mDegree); GF2Polynomial u = getGF2Polynomial(); GF2Polynomial v = mField.getFieldPolynomial(); GF2Polynomial h; while (true) b.addToThis(mField.getFieldPolynomial()); b.shiftRightThis();
polynomial = polynomial.remainder(mField.getFieldPolynomial()); polynomial.expandN(mDegree); return;
polynomial = polynomial.remainder(mField.getFieldPolynomial()); polynomial.expandN(mDegree); return;
c.reduceN(); GF2Polynomial u = getGF2Polynomial(); GF2Polynomial v = mField.getFieldPolynomial(); GF2Polynomial h; int j;
c.reduceN(); GF2Polynomial u = getGF2Polynomial(); GF2Polynomial v = mField.getFieldPolynomial(); GF2Polynomial h; int j;