Class ECPoint.F2m

java.lang.Object
org.bouncycastle.math.ec.ECPoint
org.bouncycastle.math.ec.ECPoint.F2m
Enclosing class:
ECPoint

public static class ECPoint.F2m
extends ECPoint
Elliptic curve points over F2m
  • Constructor Details

  • Method Details

    • getEncoded

      public byte[] getEncoded​(boolean compressed)
      Specified by:
      getEncoded in class ECPoint
    • add

      public ECPoint add​(ECPoint b)
      Specified by:
      add in class ECPoint
    • addSimple

      public ECPoint.F2m addSimple​(ECPoint.F2m b)
      Adds another ECPoints.F2m to this without 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 other ECPoints.F2m to add to this.
      Returns:
      this + b
    • subtract

      public ECPoint subtract​(ECPoint b)
      Specified by:
      subtract in class ECPoint
    • subtractSimple

      public ECPoint.F2m subtractSimple​(ECPoint.F2m b)
      Subtracts another ECPoints.F2m from this without 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 other ECPoints.F2m to subtract from this.
      Returns:
      this - b
    • twice

      public ECPoint twice()
      Specified by:
      twice in class ECPoint
    • negate

      public ECPoint negate()
      Specified by:
      negate in class ECPoint