Code example for EllipticCurve

Methods: getA

0
     */ 
    public final void testGetA() { 
        ECFieldF2m f = new ECFieldF2m(5);
        BigInteger a = BigInteger.valueOf(5L);
        BigInteger b = BigInteger.valueOf(19L);
        EllipticCurve c = new EllipticCurve(f, a, b);
        assertEquals(a, c.getA());
        assertSame(a, c.getA());
    } 
 
    /** 
     * @tests java/security/spec/EllipticCurve#EllipticCurve(EcField,BigInteger,BigInteger) 
     */ 
    public final void testEllipticCurveECFieldBigIntegerBigInteger05() { 
        // Regression for Harmony-731 
        EllipticCurve ec = new EllipticCurve(new testECField(), BigInteger
                .valueOf(4L), BigInteger.ONE);
        assertEquals("incorrect a", ec.getA(), BigInteger.valueOf(4L));
        assertEquals("incorrect b", ec.getB(), BigInteger.ONE);
        assertEquals("incorrect size", ec.getField().getFieldSize(), 2);
Contextual code suggestions in your IDE  Get Codota for Java