Package org.gudy.bouncycastle.math.ec
Class ECPoint
java.lang.Object
org.gudy.bouncycastle.math.ec.ECPoint
- Direct Known Subclasses:
ECPoint.F2m
,ECPoint.Fp
base class for points on elliptic curves.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Elliptic curve points over F2mstatic class
Elliptic curve points over Fp -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static X9IntegerConverter
(package private) ECCurve
protected ECMultiplier
protected PreCompInfo
protected boolean
(package private) ECFieldElement
(package private) ECFieldElement
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ECPoint
(ECCurve curve, ECFieldElement x, ECFieldElement y) -
Method Summary
Modifier and TypeMethodDescriptionabstract ECPoint
(package private) void
Sets the defaultECMultiplier
, unless already set.boolean
getCurve()
abstract byte[]
getEncoded
(boolean ignore) getX()
getY()
int
hashCode()
boolean
boolean
Multiplies thisECPoint
by the given number.abstract ECPoint
negate()
(package private) void
setPreCompInfo
(PreCompInfo preCompInfo) Sets thePreCompInfo
.abstract ECPoint
abstract ECPoint
twice()
-
Field Details
-
curve
ECCurve curve -
x
-
y
-
withCompression
protected boolean withCompression -
multiplier
-
preCompInfo
-
converter
-
-
Constructor Details
-
ECPoint
-
-
Method Details
-
getCurve
-
getX
-
getY
-
isInfinity
public boolean isInfinity() -
isCompressed
public boolean isCompressed() -
equals
-
hashCode
public int hashCode() -
setPreCompInfo
Sets thePreCompInfo
. Used byECMultiplier
s to save the precomputation for thisECPoint
to store the precomputation result for use by subsequent multiplication.- Parameters:
preCompInfo
- The values precomputed by theECMultiplier
.
-
getEncoded
public abstract byte[] getEncoded(boolean ignore) -
add
-
subtract
-
negate
-
twice
-
assertECMultiplier
void assertECMultiplier()Sets the defaultECMultiplier
, unless already set. -
multiply
Multiplies thisECPoint
by the given number.- Parameters:
k
- The multiplicator.- Returns:
k * this
.
-