|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All classes supporting the decompression algorithm of ANSI X9.62 must implement this interface. It will be used by the Octet2Point class.
Method Summary | |
byte[] |
compress(FieldElement xCoordinate,
FieldElement yCoordinate)
Point compression according to ANSI X9.62 |
AffineCoordinate |
decompress(FieldElement xCoordinate,
int yBit,
EllipticCurve curve)
Point decompression for elliptic curves according to ANSI X9.62 |
Method Detail |
public byte[] compress(FieldElement xCoordinate, FieldElement yCoordinate)
xCoordinate
- the point's x coordinateyCoordinate
- the point's y coordinate
public AffineCoordinate decompress(FieldElement xCoordinate, int yBit, EllipticCurve curve) throws AlgorithmException
xCoordinate
- the x coordinate of the pointyBit
- the rightmost bit of the y coordinate(must be 0 or 1)curve
- the elliptic curve
AlgorithmException
- if yBit != 0 or 1 or the square root calculation fails.
|
IAIK ECC version 2.18 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |