Example #1
0
        /*
         * CheckValid() runs the validity tests on the curve, and
         * verifies that provided point is part of a subgroup with
         * the advertised subgroup order.
         */
        public void CheckValid()
        {
            curve.CheckValid();
            MutableECPoint P = iPub.Dup();

            if (P.MulSpecCT(curve.SubgroupOrder) == 0 ||
                !P.IsInfinity)
            {
                throw new CryptoException(
                          "Public key point not on the defined subgroup");
            }
        }
Example #2
0
 /*
  * CheckValid() runs the validity tests on the curve.
  */
 public void CheckValid()
 {
     curve.CheckValid();
 }