public interface PointCompressorDecompressor
Modifier and Type | Field and Description |
---|---|
static byte |
PC_COMPRESSED
The bit mask for compressed points.
|
static byte |
PC_UNCOMPRESSED
The bit mask for uncompressed points.
|
Modifier and Type | Method and Description |
---|---|
ECPoint |
decode(byte[] encodedPoint)
Decompresses a compressed point.
|
ECPoint |
decode(byte[] encodedPoint,
int length)
Decompresses a compressed point.
|
byte[] |
encode(ECPoint p)
Compresses a point, i.e.
|
static final byte PC_COMPRESSED
static final byte PC_UNCOMPRESSED
byte[] encode(ECPoint p)
byte[]
, where only
one bit is used to represent the y-coordinate.p
- the point to be compressed.byte[]
holding the compressed pointECPoint decode(byte[] encodedPoint) throws DecodingException
encodedPoint
- the byte[]
-encoding of the pointDecodingException
- if the point could not be decodedECPoint decode(byte[] encodedPoint, int length) throws DecodingException
encodedPoint
- the byte[]
-encoding of the pointlength
- the length of the sub-array to be consideredDecodingException
- if the point could not be decodedCopyright © 2011–2022 Stiftung SIC. All rights reserved.