Code example for ECFieldF2m

Methods: equals

0
     * 
     * Assertion: trinomial basis - objects equal if their m, and rp 
     * are mutually equal.  
     */ 
    public final void testEqualsObject03() { 
        assertTrue(new ECFieldF2m(1999, new int[] {367}).equals(
                   new ECFieldF2m(1999, BigInteger.valueOf(0L).
                                        setBit(0).setBit(367).setBit(1999))));
    } 
 
    /** 
     * Test #4 for <code>equals()</code> method.<br> 
     * 
     * 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).
Connect your IDE to all the code out there  Get Codota for Java