Code example for ECFieldF2m

Methods: equals

0
     * 
     * Assertion: pentanomial basis - objects equal if their m, and rp 
     * are mutually equal.  
     */ 
    public final void testEqualsObject04() { 
        ECFieldF2m f1 = new ECFieldF2m(2000, new int[] {981, 2, 1});
        ECFieldF2m f2 = new ECFieldF2m(2000, BigInteger.valueOf(0L).
                setBit(0).setBit(1).setBit(2).
                setBit(981).setBit(2000)); 
        assertTrue(f1.equals(f2) && f2.equals(f1));
    } 
 
    /** 
     * Test #5 for <code>equals()</code> method.<br> 
     * 
     * Assertion: objects equal if their m, and rp are mutually equal.  
     */ 
    public final void testEqualsObject05() { 
        ECFieldF2m f1 = new ECFieldF2m(2000);
        ECFieldF2m f2 = new ECFieldF2m(2000, BigInteger.valueOf(0L).