Class Curve25519Point
- java.lang.Object
-
- org.bouncycastle.math.ec.ECPoint
-
- org.bouncycastle.math.ec.ECPoint.AbstractFp
-
- org.bouncycastle.math.ec.custom.djb.Curve25519Point
-
public class Curve25519Point extends ECPoint.AbstractFp
-
-
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 Curve25519Point(ECCurve curve, ECFieldElement x, ECFieldElement y)Deprecated.Use ECCurve.createPoint to construct pointsCurve25519Point(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 Curve25519FieldElementcalculateJacobianModifiedW(Curve25519FieldElement Z, int[] ZSquared)protected ECPointdetach()protected Curve25519FieldElementgetJacobianModifiedW()ECFieldElementgetZCoord(int index)ECPointnegate()ECPointthreeTimes()ECPointtwice()protected Curve25519PointtwiceJacobianModified(boolean calculateW)ECPointtwicePlus(ECPoint b)-
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, getXCoord, getYCoord, getZCoords, hashCode, isCompressed, isInfinity, isNormalized, isValid, multiply, normalize, satisfiesOrder, scaleX, scaleY, timesPow2, toString
-
-
-
-
Constructor Detail
-
Curve25519Point
public Curve25519Point(ECCurve curve, ECFieldElement x, ECFieldElement y)
Deprecated.Use ECCurve.createPoint to construct pointsCreate a point which encodes with point compression.- Parameters:
curve- the curve to usex- affine x co-ordinatey- affine y co-ordinate
-
Curve25519Point
public Curve25519Point(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 compresion.- 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
-
calculateJacobianModifiedW
protected Curve25519FieldElement calculateJacobianModifiedW(Curve25519FieldElement Z, int[] ZSquared)
-
getJacobianModifiedW
protected Curve25519FieldElement getJacobianModifiedW()
-
twiceJacobianModified
protected Curve25519Point twiceJacobianModified(boolean calculateW)
-
-