Package org.bouncycastle.math.ec
Class ECPoint.Fp
- java.lang.Object
-
- org.bouncycastle.math.ec.ECPoint
-
- org.bouncycastle.math.ec.ECPoint.AbstractFp
-
- org.bouncycastle.math.ec.ECPoint.Fp
-
- Enclosing class:
- ECPoint
public static class ECPoint.Fp extends ECPoint.AbstractFp
Elliptic curve points over Fp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.bouncycastle.math.ec.ECPoint
ECPoint.AbstractF2m, ECPoint.AbstractFp, ECPoint.F2m, ECPoint.Fp
-
-
Field Summary
-
Fields inherited from class org.bouncycastle.math.ec.ECPoint
curve, EMPTY_ZS, preCompTable, withCompression, x, y, zs
-
-
Constructor Summary
Constructors Constructor Description Fp(ECCurve curve, ECFieldElement x, ECFieldElement y)Deprecated.Use ECCurve.createPoint to construct pointsFp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)Deprecated.per-point compression property will be removed, referECPoint.getEncoded(boolean)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ECPointadd(ECPoint b)protected ECFieldElementcalculateJacobianModifiedW(ECFieldElement Z, ECFieldElement ZSquared)protected ECPointdetach()protected ECFieldElementdoubleProductFromSquares(ECFieldElement a, ECFieldElement b, ECFieldElement aSquared, ECFieldElement bSquared)protected ECFieldElementeight(ECFieldElement x)protected ECFieldElementfour(ECFieldElement x)protected ECFieldElementgetJacobianModifiedW()ECFieldElementgetZCoord(int index)ECPointnegate()protected ECFieldElementthree(ECFieldElement x)ECPointthreeTimes()ECPointtimesPow2(int e)ECPointtwice()protected ECPoint.FptwiceJacobianModified(boolean calculateW)ECPointtwicePlus(ECPoint b)protected ECFieldElementtwo(ECFieldElement x)-
Methods inherited from class org.bouncycastle.math.ec.ECPoint.AbstractFp
getCompressionYTilde, satisfiesCurveEquation, subtract
-
Methods inherited from class org.bouncycastle.math.ec.ECPoint
checkNormalized, createScaledPoint, equals, equals, getAffineXCoord, getAffineYCoord, getCurve, getCurveCoordinateSystem, getDetachedPoint, getEncoded, getEncoded, getInitialZCoords, getRawXCoord, getRawYCoord, getRawZCoords, getX, getXCoord, getY, getYCoord, getZCoords, hashCode, isCompressed, isInfinity, isNormalized, isValid, multiply, normalize, satisfiesCofactor, scaleX, scaleY, toString
-
-
-
-
Constructor Detail
-
Fp
public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y)
Deprecated.Use ECCurve.createPoint to construct pointsCreate a point which encodes without point compression.- Parameters:
curve- the curve to usex- affine x co-ordinatey- affine y co-ordinate
-
Fp
public Fp(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)
Deprecated.per-point compression property will be removed, referECPoint.getEncoded(boolean)Create a point that encodes with or without point compression.- Parameters:
curve- the curve to usex- affine x co-ordinatey- affine y co-ordinatewithCompression- if true encode with point compression
-
-
Method Detail
-
getZCoord
public ECFieldElement getZCoord(int index)
-
threeTimes
public ECPoint threeTimes()
- Overrides:
threeTimesin classECPoint
-
two
protected ECFieldElement two(ECFieldElement x)
-
three
protected ECFieldElement three(ECFieldElement x)
-
four
protected ECFieldElement four(ECFieldElement x)
-
eight
protected ECFieldElement eight(ECFieldElement x)
-
doubleProductFromSquares
protected ECFieldElement doubleProductFromSquares(ECFieldElement a, ECFieldElement b, ECFieldElement aSquared, ECFieldElement bSquared)
-
calculateJacobianModifiedW
protected ECFieldElement calculateJacobianModifiedW(ECFieldElement Z, ECFieldElement ZSquared)
-
getJacobianModifiedW
protected ECFieldElement getJacobianModifiedW()
-
twiceJacobianModified
protected ECPoint.Fp twiceJacobianModified(boolean calculateW)
-
-