Class EllipticCurveMethod


  • public class EllipticCurveMethod
    extends FactorAlgorithm

    Use Elliptic Curve Method to find the prime number factors of a given BigInteger.

    • Constructor Detail

      • EllipticCurveMethod

        public EllipticCurveMethod​(int maxCurves)
        Full constructor.
        Parameters:
        maxCurves - the maximum number of curves to run. -1 means no limit, 0 automatic computation of the parameter, positive values are applied directly.
    • Method Detail

      • getName

        public String getName()
        Specified by:
        getName in class FactorAlgorithm
        Returns:
        The name of the algorithm, possibly including important parameters.
      • searchFactors

        public void searchFactors​(FactorArguments args,
                                  FactorResult result)
        Find small factors of some N. Returns found factors in result.primeFactors and eventually some unfactored composites in result.compositeFactors.
        Overrides:
        searchFactors in class FactorAlgorithm
        Parameters:
        args -
        result - the result of the factoring attempt. Should be initialized only once by the caller to reduce overhead.
      • computeMaxCurvesForN

        public static int computeMaxCurvesForN​(BigInteger N)
      • main

        public static void main​(String[] args)