/** * @return the degree of the Goppa polynomial (error correcting capability) */ public int getT() { return goppaPoly.getDegree(); }
/** * @return the degree of the Goppa polynomial (error correcting capability) */ public int getT() { return goppaPoly.getDegree(); }
/** * @return the degree of the Goppa polynomial (error correcting capability) */ public int getT() { return params.getGoppaPoly().getDegree(); }
/** * Compute the squaring matrix for this polynomial ring, using the base * field and the reduction polynomial. */ private void computeSquaringMatrix() { int numColumns = p.getDegree(); sqMatrix = new PolynomialGF2mSmallM[numColumns]; for (int i = 0; i < numColumns >> 1; i++) { int[] monomCoeffs = new int[(i << 1) + 1]; monomCoeffs[i << 1] = 1; sqMatrix[i] = new PolynomialGF2mSmallM(field, monomCoeffs); } for (int i = numColumns >> 1; i < numColumns; i++) { int[] monomCoeffs = new int[(i << 1) + 1]; monomCoeffs[i << 1] = 1; PolynomialGF2mSmallM monomial = new PolynomialGF2mSmallM(field, monomCoeffs); sqMatrix[i] = monomial.mod(p); } }
/** * Compute the squaring matrix for this polynomial ring, using the base * field and the reduction polynomial. */ private void computeSquaringMatrix() { int numColumns = p.getDegree(); sqMatrix = new PolynomialGF2mSmallM[numColumns]; for (int i = 0; i < numColumns >> 1; i++) { int[] monomCoeffs = new int[(i << 1) + 1]; monomCoeffs[i << 1] = 1; sqMatrix[i] = new PolynomialGF2mSmallM(field, monomCoeffs); } for (int i = numColumns >> 1; i < numColumns; i++) { int[] monomCoeffs = new int[(i << 1) + 1]; monomCoeffs[i << 1] = 1; PolynomialGF2mSmallM monomial = new PolynomialGF2mSmallM(field, monomCoeffs); sqMatrix[i] = monomial.mod(p); } }
int t = gp.getDegree();
int t = gp.getDegree();
int numColumns = p.getDegree();
int numColumns = p.getDegree();