Class ShortWeierstrassCurveProjective<E>

java.lang.Object
dk.jonaslindstrom.ruffini.elliptic.structures.ShortWeierstrassCurveProjective<E>
All Implemented Interfaces:
dk.jonaslindstrom.ruffini.common.abstractions.AdditiveGroup<ProjectivePoint<E>>, dk.jonaslindstrom.ruffini.common.abstractions.CommutativeMonoid<ProjectivePoint<E>>, dk.jonaslindstrom.ruffini.common.abstractions.Set<ProjectivePoint<E>>

public class ShortWeierstrassCurveProjective<E> extends Object implements dk.jonaslindstrom.ruffini.common.abstractions.AdditiveGroup<ProjectivePoint<E>>
  • Constructor Details

    • ShortWeierstrassCurveProjective

      public ShortWeierstrassCurveProjective(dk.jonaslindstrom.ruffini.common.abstractions.Field<E> field, E a, E b)
      Curve on Weierstrass form. Field should have characteristics not equal to 2 or 3.
  • Method Details

    • getField

      public dk.jonaslindstrom.ruffini.common.abstractions.Field<E> getField()
    • discriminant

      public E discriminant()
    • getA

      public E getA()
    • getB

      public E getB()
    • negate

      public ProjectivePoint<E> negate(ProjectivePoint<E> p)
      Specified by:
      negate in interface dk.jonaslindstrom.ruffini.common.abstractions.AdditiveGroup<E>
    • add

      Specified by:
      add in interface dk.jonaslindstrom.ruffini.common.abstractions.CommutativeMonoid<E>
    • getZero

      public ProjectivePoint<E> getZero()
      Specified by:
      getZero in interface dk.jonaslindstrom.ruffini.common.abstractions.CommutativeMonoid<E>
    • toString

      public String toString(ProjectivePoint<E> p)
      Specified by:
      toString in interface dk.jonaslindstrom.ruffini.common.abstractions.Set<E>
    • equals

      public boolean equals(ProjectivePoint<E> p, ProjectivePoint<E> q)
      Specified by:
      equals in interface dk.jonaslindstrom.ruffini.common.abstractions.Set<E>
    • doubling

      public ProjectivePoint<E> doubling(ProjectivePoint<E> p)
      Specified by:
      doubling in interface dk.jonaslindstrom.ruffini.common.abstractions.AdditiveGroup<E>
    • toString

      public String toString()
      Overrides:
      toString in class Object