ECPoint.F2m, ECPoint.Fp
curve, multiplier, preCompInfo, withCompression, x, y
Constructor and Description |
---|
F2m(ECCurve curve)
Deprecated.
use ECCurve.getInfinity()
Constructor for point at infinity
|
F2m(ECCurve curve,
ECFieldElement x,
ECFieldElement y) |
F2m(ECCurve curve,
ECFieldElement x,
ECFieldElement y,
boolean withCompression) |
Modifier and Type | Method and Description |
---|---|
ECPoint |
add(ECPoint b) |
ECPoint.F2m |
addSimple(ECPoint.F2m b)
Adds another
ECPoints.F2m to this without
checking if both points are on the same curve. |
private static void |
checkPoints(ECPoint a,
ECPoint b)
Check, if two
ECPoint s can be added or subtracted. |
byte[] |
getEncoded() |
ECPoint |
negate() |
ECPoint |
subtract(ECPoint b) |
ECPoint.F2m |
subtractSimple(ECPoint.F2m b)
Subtracts another
ECPoints.F2m from this
without checking if both points are on the same curve. |
ECPoint |
twice() |
assertECMultiplier, equals, getCurve, getX, getY, hashCode, isCompressed, isInfinity, multiply, setPreCompInfo
public F2m(ECCurve curve, ECFieldElement x, ECFieldElement y)
curve
- base curvex
- x pointy
- y pointpublic F2m(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)
curve
- base curvex
- x pointy
- y pointwithCompression
- true if encode with point compression.public F2m(ECCurve curve)
public byte[] getEncoded()
getEncoded
in class ECPoint
private static void checkPoints(ECPoint a, ECPoint b)
ECPoint
s can be added or subtracted.a
- The first ECPoint
to check.b
- The second ECPoint
to check.java.lang.IllegalArgumentException
- if a
and b
cannot be added.public ECPoint.F2m addSimple(ECPoint.F2m b)
ECPoints.F2m
to this
without
checking if both points are on the same curve. Used by multiplication
algorithms, because there all points are a multiple of the same point
and hence the checks can be omitted.b
- The other ECPoints.F2m
to add to
this
.this + b
public ECPoint.F2m subtractSimple(ECPoint.F2m b)
ECPoints.F2m
from this
without checking if both points are on the same curve. Used by
multiplication algorithms, because there all points are a multiple
of the same point and hence the checks can be omitted.b
- The other ECPoints.F2m
to subtract from
this
.this - b
Copyright © 1998-2014 Gamma Technologies. All Rights Reserved.