Code example for EllipticCurve

Methods: getField

0
     */ 
    public final void testGetField() { 
        ECFieldF2m f = new ECFieldF2m(5);
        BigInteger a = BigInteger.valueOf(5L);
        BigInteger b = BigInteger.valueOf(19L);
        EllipticCurve c = new EllipticCurve(f, a, b);
        assertEquals(f, c.getField());
        assertSame(f, c.getField());
    } 
 
    /** 
     * Test #1 for <code>getSeed()</code> method<br> 
     * Assertion: returns <code>seed</code><br> 
     * Test preconditions: <code>ECFieldF2m</code> instance 
     * created using valid parameters<br> 
     * Expected: must return <code>seed</code> which is equal 
     * to the one passed to the constructor 
     */ 
    public final void testGetSeed01() { 
        ECFieldFp f = new ECFieldFp(BigInteger.valueOf(23L));
Contextual code suggestions in your IDE  Get Codota for Java