コード例 #1
0
 void CheckEquation()
 {
     curve.RebuildY2(mx, mt1, mt2);
     mt2.Set(my);
     mt2.ToMonty();
     mt2.MontyMul(my);
     if (!mt1.Eq(mt2))
     {
         throw new CryptoException(
                   "Point is not on the curve");
     }
 }