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 classElliptic curve points over F2mstatic classElliptic curve points over Fp -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static X9IntegerConverter(package private) ECCurveprotected ECMultiplierprotected PreCompInfoprotected boolean(package private) ECFieldElement(package private) ECFieldElement -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedECPoint(ECCurve curve, ECFieldElement x, ECFieldElement y) -
Method Summary
Modifier and TypeMethodDescriptionabstract ECPoint(package private) voidSets the defaultECMultiplier, unless already set.booleangetCurve()abstract byte[]getEncoded(boolean ignore) getX()getY()inthashCode()booleanbooleanMultiplies thisECPointby the given number.abstract ECPointnegate()(package private) voidsetPreCompInfo(PreCompInfo preCompInfo) Sets thePreCompInfo.abstract ECPointabstract ECPointtwice()
-
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
-
setPreCompInfo
Sets thePreCompInfo. Used byECMultipliers to save the precomputation for thisECPointto 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 thisECPointby the given number.- Parameters:
k- The multiplicator.- Returns:
k * this.
-