PointEd448 extends Point { public static PointEd448 fromAffine(Coordinate x, Coordinate y) { return new PointEd448( x.multiply(DEFAULT_Z).mod(), y.multiply(DEFAULT_Z).mod(), DEFAULT_Z, x.multiply(y).multiply(DEFAULT_Z).mod() ); } PointEd448(Coordinate x, Coordinate y, Coordinate z, Coordinate t); static PointEd448 fromAffine(Coordinate x, Coordinate y); @Override Point add(Point point); @Override Point doubling(); @Override Point scalarMultiply(BigInteger integer); @Override Point negateY(); @Override EncodedPoint encode(); @Override Point negate();  }
@Test public void success_IsEqual_true_1() { Point point1 = PointEd448.fromAffine( new CoordinateEd448(new BigInteger("12345")), new CoordinateEd448(new BigInteger("23456"))); Point point2 = PointEd448.fromAffine( new CoordinateEd448(new BigInteger("12345")), new CoordinateEd448(new BigInteger("23456"))); assertThat(point1.isEqual(point2), is(true)); }
@Test public void success_IsEqual_false_1() { Point point1 = PointEd448.fromAffine( new CoordinateEd448(new BigInteger("112345")), new CoordinateEd448(new BigInteger("23456"))); Point point2 = PointEd448.fromAffine( new CoordinateEd448(new BigInteger("12345")), new CoordinateEd448(new BigInteger("23456"))); assertThat(point1.isEqual(point2), is(false)); }
@Test public void success_IsEqual_false_2() { Point point1 = PointEd448.fromAffine( new CoordinateEd448(new BigInteger("12345")), new CoordinateEd448(new BigInteger("223456"))); Point point2 = PointEd448.fromAffine( new CoordinateEd448(new BigInteger("12345")), new CoordinateEd448(new BigInteger("23456"))); assertThat(point1.isEqual(point2), is(false)); }
@Test public void success_IsEqual_false_3() { Point point1 = PointEd448.fromAffine( new CoordinateEd448(new BigInteger("12345")), new CoordinateEd448(new BigInteger("23456"))); Point point2 = PointEd448.fromAffine( new CoordinateEd448(new BigInteger("112345")), new CoordinateEd448(new BigInteger("23456"))); assertThat(point1.isEqual(point2), is(false)); }
@Test public void success_IsEqual_false_4() { Point point1 = PointEd448.fromAffine( new CoordinateEd448(new BigInteger("12345")), new CoordinateEd448(new BigInteger("23456"))); Point point2 = PointEd448.fromAffine( new CoordinateEd448(new BigInteger("12345")), new CoordinateEd448(new BigInteger("223456"))); assertThat(point1.isEqual(point2), is(false)); }