Code example for EllipticCurve

Methods: equals

0
                BigInteger.valueOf(19L),
                new byte[25]); 
        assertFalse(c1.equals(c2) || c2.equals(c1));
 
        // test case 6: not equal objects - one seed is null 
        c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
                BigInteger.ONE,
                BigInteger.valueOf(19L),
                null); 
        c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
                BigInteger.valueOf(1L),
                BigInteger.valueOf(19L),
                new byte[24]); 
        assertFalse(c1.equals(c2) || c2.equals(c1));
 
        // test case 7: not equal objects - field class 
        c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)),
                BigInteger.ONE,
                BigInteger.valueOf(19L),
                new byte[24]); 
        c2 = new EllipticCurve(new ECFieldF2m(5),