/** * assigns to this element the value <tt>val</tt>. * * @param val the value represented by a BigInteger */ private void assign(BigInteger val) { assign(val.toByteArray()); }
/** * assigns to this element the value <tt>val</tt>. * * @param val the value represented by a BigInteger */ private void assign(BigInteger val) { assign(val.toByteArray()); }
/** * Construct a new GF2nONBElement from its encoding. * * @param gf2n the field * @param e the encoded element */ public GF2nONBElement(GF2nONBField gf2n, byte[] e) { mField = gf2n; mDegree = mField.getDegree(); mLength = gf2n.getONBLength(); mBit = gf2n.getONBBit(); mPol = new long[mLength]; assign(e); }
/** * Construct the element of the field <tt>gf2n</tt> with the specified * value <tt>val</tt>. * * @param gf2n the field * @param val the value represented by a BigInteger */ public GF2nONBElement(GF2nONBField gf2n, BigInteger val) { mField = gf2n; mDegree = mField.getDegree(); mLength = gf2n.getONBLength(); mBit = gf2n.getONBBit(); mPol = new long[mLength]; assign(val); }
/** * Construct a new GF2nONBElement from its encoding. * * @param gf2n the field * @param e the encoded element */ public GF2nONBElement(GF2nONBField gf2n, byte[] e) { mField = gf2n; mDegree = mField.getDegree(); mLength = gf2n.getONBLength(); mBit = gf2n.getONBBit(); mPol = new long[mLength]; assign(e); }
/** * Construct the element of the field <tt>gf2n</tt> with the specified * value <tt>val</tt>. * * @param gf2n the field * @param val the value represented by a BigInteger */ public GF2nONBElement(GF2nONBField gf2n, BigInteger val) { mField = gf2n; mDegree = mField.getDegree(); mLength = gf2n.getONBLength(); mBit = gf2n.getONBBit(); mPol = new long[mLength]; assign(val); }
/** * Copy constructor. * * @param gf2n the field */ public GF2nONBElement(GF2nONBElement gf2n) { mField = gf2n.mField; mDegree = mField.getDegree(); mLength = ((GF2nONBField)mField).getONBLength(); mBit = ((GF2nONBField)mField).getONBBit(); mPol = new long[mLength]; assign(gf2n.getElement()); }
/** * Copy constructor. * * @param gf2n the field */ public GF2nONBElement(GF2nONBElement gf2n) { mField = gf2n.mField; mDegree = mField.getDegree(); mLength = ((GF2nONBField)mField).getONBLength(); mBit = ((GF2nONBField)mField).getONBBit(); mPol = new long[mLength]; assign(gf2n.getElement()); }