@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)); }
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 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 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); }
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(); }
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();  }