Code example for ECFieldFp

0
 
        // test case 2: not equal objects - field 
        c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
                BigInteger.ONE,
                BigInteger.valueOf(19L));
        c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(31L)),
                BigInteger.valueOf(1L),
                BigInteger.valueOf(19L));
        assertFalse(c1.equals(c2) || c2.equals(c1));
 
        // test case 3: not equal objects - a 
        c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
                BigInteger.ONE,
                BigInteger.valueOf(19L));
        c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
                BigInteger.ZERO,
                BigInteger.valueOf(19L));
        assertFalse(c1.equals(c2) || c2.equals(c1));
 
        // test case 4: not equal objects - b 
        c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),