@Test public void success_DecodePoint_3() throws DecodeException { EncodedPoint encodedPoint = new EncodedPointEd448(HexEncoder.getBytes("c6c5ee5bbd1a6abf49ed522ecfdce18f66c8872a9c4c3c3061292a6f7020179a7de0089f15c275ec14e01180c0dbe41732200a7628fe5f7000")); Point point = encodedPoint.decode(); assertThat(point.getX().getInteger(), is(new BigInteger("472067484368213515937816390739321044164758042133140508836395663489652332002738245695993700980622152470363675557312182877688850671564164"))); assertThat(point.getY().getInteger(), is(new BigInteger("319056567243186338229131462709903384480410384317025731854394641070448863807652348269431018082259219462543405812580172294129861864113606"))); }
@Override public Point decode() throws DecodeException { byte readTarget = value[value.length - 1]; int x0 = ByteUtils.readBit(readTarget, 7); Coordinate y = recoverY(this.value); Coordinate x = recoverX(y, x0); return PointEd448.fromAffine(x, y); }
EncodedPointEd448 extends EncodedPoint { @Override public Point decode() throws DecodeException { byte readTarget = value[value.length - 1]; int x0 = ByteUtils.readBit(readTarget, 7); Coordinate y = recoverY(this.value); Coordinate x = recoverX(y, x0); return PointEd448.fromAffine(x, y); } }
EncodedPointEd448 extends EncodedPoint { @Override public Point decode() throws DecodeException { byte readTarget = value[value.length - 1]; int x0 = ByteUtils.readBit(readTarget, 7); Coordinate y = recoverY(this.value); Coordinate x = recoverX(y, x0); return PointEd448.fromAffine(x, y); } EncodedPointEd448(byte[] value); }
EncodedPointEd448 extends EncodedPoint { @Override public Point decode() throws DecodeException { byte readTarget = value[value.length - 1]; int x0 = ByteUtils.readBit(readTarget, 7); Coordinate y = recoverY(this.value); Coordinate x = recoverX(y, x0); return PointEd448.fromAffine(x, y); } EncodedPointEd448(byte[] value); @Override Point decode(); }
EncodedPointEd448 extends EncodedPoint { @Override public Point decode() throws DecodeException { byte readTarget = value[value.length - 1]; int x0 = ByteUtils.readBit(readTarget, 7); Coordinate y = recoverY(this.value); Coordinate x = recoverX(y, x0); return PointEd448.fromAffine(x, y); } EncodedPointEd448(byte[] value); @Override Point decode();  }