Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of <see cref="EllipticCurveCalculator"/> using the given <see cref="IECurveFp"/>.
        /// <para/> This constructor is only used for certain tests such as signature.
        /// </summary>
        /// <param name="curve">Curve to use</param>
        public EllipticCurveCalculator(IECurveFp curve)
        {
            if (curve is null)
            {
                throw new ArgumentNullException(nameof(curve), "Curve can not be null.");
            }

            this.curve = curve;
        }
Ejemplo n.º 2
0
 public ECCalc(IECurveFp curve)
 {
     this.curve = curve;
 }
 public EllipticCurveCalculator(IECurveFp curve)
 {
     this.curve = curve;
 }