Package org.bouncycastle.math.ec
Class ECPoint.F2m
- java.lang.Object
-
- org.bouncycastle.math.ec.ECPoint
-
- org.bouncycastle.math.ec.ECPoint.AbstractF2m
-
- org.bouncycastle.math.ec.ECPoint.F2m
-
- Enclosing class:
- ECPoint
public static class ECPoint.F2m extends ECPoint.AbstractF2m
Elliptic curve points over F2m
-
-
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 F2m(ECCurve curve, ECFieldElement x, ECFieldElement y)Deprecated.Use ECCurve.createPoint to construct pointsF2m(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)ECPoint.F2maddSimple(ECPoint.F2m b)Adds anotherECPoints.F2mtothiswithout checking if both points are on the same curve.protected ECPointdetach()protected booleangetCompressionYTilde()ECFieldElementgetYCoord()Returns the y-coordinate.ECPointnegate()ECPointscaleX(ECFieldElement scale)ECPointscaleY(ECFieldElement scale)ECPointsubtract(ECPoint b)ECPoint.F2msubtractSimple(ECPoint.F2m b)Subtracts anotherECPoints.F2mfromthiswithout checking if both points are on the same curve.ECPoint.F2mtau()ECPointtwice()ECPointtwicePlus(ECPoint b)-
Methods inherited from class org.bouncycastle.math.ec.ECPoint.AbstractF2m
satisfiesCurveEquation
-
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, getZCoord, getZCoords, hashCode, isCompressed, isInfinity, isNormalized, isValid, multiply, normalize, satisfiesCofactor, threeTimes, timesPow2, toString
-
-
-
-
Constructor Detail
-
F2m
public F2m(ECCurve curve, ECFieldElement x, ECFieldElement y)
Deprecated.Use ECCurve.createPoint to construct points- Parameters:
curve- base curvex- x pointy- y point
-
F2m
public F2m(ECCurve curve, ECFieldElement x, ECFieldElement y, boolean withCompression)
Deprecated.per-point compression property will be removed, referECPoint.getEncoded(boolean)- Parameters:
curve- base curvex- x pointy- y pointwithCompression- true if encode with point compression.
-
-
Method Detail
-
getYCoord
public ECFieldElement getYCoord()
Description copied from class:ECPointReturns the y-coordinate. Caution: depending on the curve's coordinate system, this may not be the same value as in an affine coordinate system; use normalize() to get a point where the coordinates have their affine values, or use getAffineYCoord() if you expect the point to already have been normalized.
-
scaleX
public ECPoint scaleX(ECFieldElement scale)
-
scaleY
public ECPoint scaleY(ECFieldElement scale)
-
getCompressionYTilde
protected boolean getCompressionYTilde()
- Specified by:
getCompressionYTildein classECPoint
-
addSimple
public ECPoint.F2m addSimple(ECPoint.F2m b)
Adds anotherECPoints.F2mtothiswithout checking if both points are on the same curve. Used by multiplication algorithms, because there all points are a multiple of the same point and hence the checks can be omitted.- Parameters:
b- The otherECPoints.F2mto add tothis.- Returns:
this + b
-
subtractSimple
public ECPoint.F2m subtractSimple(ECPoint.F2m b)
Subtracts anotherECPoints.F2mfromthiswithout checking if both points are on the same curve. Used by multiplication algorithms, because there all points are a multiple of the same point and hence the checks can be omitted.- Parameters:
b- The otherECPoints.F2mto subtract fromthis.- Returns:
this - b
-
tau
public ECPoint.F2m tau()
-
-