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