Code example for ECFieldF2m

0
@TestTargetClass(ECParameterSpec.class)
public class ECParameterSpecTest extends TestCase {
 
    EllipticCurve curve;
 
    ECPoint ecpoint;
 
    ECParameterSpec ecps;
 
    protected void setUp() throws Exception { 
        super.setUp(); 
        curve = new EllipticCurve(new ECFieldF2m(2), BigInteger.valueOf(1),
                BigInteger.valueOf(1));
        ecpoint = new ECPoint(BigInteger.valueOf(1), BigInteger.valueOf(1));
        ecps = new ECParameterSpec(curve, ecpoint, BigInteger.valueOf(1), 1);
    } 
 
    protected void tearDown() throws Exception { 
        curve = null;
        ecpoint = null;
        ecps = null;