public abstract class ECPoint
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ECPoint.F2m
Elliptic curve points over F2m
|
static class |
ECPoint.Fp
Elliptic curve points over Fp
|
Modifier and Type | Field and Description |
---|---|
private static X9IntegerConverter |
converter |
(package private) ECCurve |
curve |
protected ECMultiplier |
multiplier |
protected PreCompInfo |
preCompInfo |
protected boolean |
withCompression |
(package private) ECFieldElement |
x |
(package private) ECFieldElement |
y |
Modifier | Constructor and Description |
---|---|
protected |
ECPoint(ECCurve curve,
ECFieldElement x,
ECFieldElement y) |
Modifier and Type | Method and Description |
---|---|
abstract ECPoint |
add(ECPoint b) |
(package private) void |
assertECMultiplier()
Sets the default
ECMultiplier , unless already set. |
boolean |
equals(java.lang.Object other) |
ECCurve |
getCurve() |
abstract byte[] |
getEncoded() |
ECFieldElement |
getX() |
ECFieldElement |
getY() |
int |
hashCode() |
boolean |
isCompressed() |
boolean |
isInfinity() |
ECPoint |
multiply(java.math.BigInteger k)
Multiplies this
ECPoint by the given number. |
abstract ECPoint |
negate() |
(package private) void |
setPreCompInfo(PreCompInfo preCompInfo)
Sets the
PreCompInfo . |
abstract ECPoint |
subtract(ECPoint b) |
abstract ECPoint |
twice() |
ECCurve curve
ECFieldElement x
ECFieldElement y
protected boolean withCompression
protected ECMultiplier multiplier
protected PreCompInfo preCompInfo
private static X9IntegerConverter converter
protected ECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y)
public ECCurve getCurve()
public ECFieldElement getX()
public ECFieldElement getY()
public boolean isInfinity()
public boolean isCompressed()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
void setPreCompInfo(PreCompInfo preCompInfo)
PreCompInfo
. Used by ECMultiplier
s
to save the precomputation for this ECPoint
to store the
precomputation result for use by subsequent multiplication.preCompInfo
- The values precomputed by the
ECMultiplier
.public abstract byte[] getEncoded()
public abstract ECPoint negate()
public abstract ECPoint twice()
void assertECMultiplier()
ECMultiplier
, unless already set.public ECPoint multiply(java.math.BigInteger k)
ECPoint
by the given number.k
- The multiplicator.k * this
.