Exemplo n.º 1
0
        public void JDoubleMutTest()
        {
            BigInt     x = new BigInt("489a03c58dcf7fcfc97e99ffef0bb4634", 16);
            BigInt     y = new BigInt("510c6972d795ec0c2b081b81de767f808", 16);
            BigInt     z = new BigInt("1", 16);
            JacobPoint a = new JacobPoint(x, y, z);

            curve.JDblMut(a);
            BigInt xE = new BigInt("417b9d98f934b571bffaed8d2968f6d67", 16);
            BigInt yE = new BigInt("6339a332da64ca233033eace4d6bdafdf", 16);
            Point  e  = new Point(xE, yE);
            Point  r  = curve.JToA(a);

            Assert.AreEqual(e, r);
        }