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