@Test public void success_DecodePoint_6() throws DecodeException { EncodedPoint encodedPoint = new EncodedPointEd448(HexEncoder.getBytes("cc8c0190b54ff5b661a488a32228ef349088240f23bb1753be89009ab79d7062bc4fbec9c6d6d1f483fcaaf9031ce9ec568f182e973bcd2e00")); Point point = encodedPoint.decode(); assertThat(point.getX().getInteger(), is(new BigInteger("480807133313964796499400988056627091574898085379655935798780429688299075972928435310433131611536740705714563718923737373165478812152020"))); assertThat(point.getY().getInteger(), is(new BigInteger("132880004060171722927589204279587192827090013151273721438143079295786882790456824968399727312748599897535872744433752084709899382131916"))); }
@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();  }