ECPoint.F2m, ECPoint.Fp
curve, multiplier, preCompInfo, withCompression, x, y
Constructor and Description |
---|
ECPoint.Fp(ECCurve curve,
ECFieldElement x,
ECFieldElement y)
Create a point which encodes with point compression.
|
ECPoint.Fp(ECCurve curve,
ECFieldElement x,
ECFieldElement y,
boolean withCompression)
Create a point that encodes with or without point compresion.
|
Modifier and Type | Method and Description |
---|---|
ECPoint |
add(ECPoint b) |
(package private) void |
assertECMultiplier()
Sets the default
ECMultiplier , unless already set. |
byte[] |
getEncoded()
return the field element encoded with point compression.
|
ECPoint |
negate() |
ECPoint |
subtract(ECPoint b) |
ECPoint |
twice() |
equals, getCurve, getX, getY, hashCode, isCompressed, isInfinity, multiply, setPreCompInfo
public ECPoint.Fp(ECCurve curve, ECFieldElement x, ECFieldElement y)
curve
- the curve to usex
- affine x co-ordinatey
- affine y co-ordinatepublic ECPoint.Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)
curve
- the curve to usex
- affine x co-ordinatey
- affine y co-ordinatewithCompression
- if true encode with point compressionpublic byte[] getEncoded()
getEncoded
in class ECPoint
void assertECMultiplier()
ECMultiplier
, unless already set.assertECMultiplier
in class ECPoint