Home | History | Annotate | Download | only in spec

Lines Matching refs:rp

39     private final BigInteger rp;
57 this.rp = null;
63 * basis and the reduction polynomial based on {@code rp}.
70 * @param rp
75 * if {@code m <= zero} or the {@code rp} is invalid.
77 public ECFieldF2m(int m, BigInteger rp) {
82 this.rp = rp;
83 if (this.rp == null) {
84 throw new NullPointerException("rp == null");
89 int rp_bc = this.rp.bitCount();
90 if ((this.rp.bitLength() != (m+1)) ||
92 (!this.rp.testBit(0) || !this.rp.testBit(m)) ) {
93 throw new IllegalArgumentException("rp is invalid");
96 // setup ks using rp:
100 BigInteger rpTmp = rp.clearBit(0);
159 // Setup rp using ks:
166 rp = rpTmp;
186 // check rp
187 if (this.rp == null) {
188 if (o.rp == null) {
194 // check that rp match
195 // return this.rp.equals(o.rp);
253 return rp;
262 return rp == null ? m : m + rp.hashCode();