Code example for ECFieldF2m

Methods: equals

0
     * Test #2 for <code>equals()</code> method.<br> 
     * 
     * Assertion: normal basis - objects equal if their m are equal.  
     */ 
    public final void testEqualsObject02() { 
        assertTrue(new ECFieldF2m(43).equals(new ECFieldF2m(43)));
    } 
 
    /** 
     * Test #3 for <code>equals()</code> method.<br> 
     * 
     * 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))));
    } 
 
Connect your IDE to all the code out there  Get Codota for Java