Exemplo n.º 1
0
        public void JMultiplyTest()
        {
            BigInt xA = new BigInt("489a03c58dcf7fcfc97e99ffef0bb4634", 16);
            BigInt yA = new BigInt("510c6972d795ec0c2b081b81de767f808", 16);
            BigInt l  = new BigInt("b8bbbc0089098f2769b32373ade8f0daf", 16);
            BigInt xE = new BigInt("073734b32a882cc97956b9f7e54a2d326", 16);
            BigInt yE = new BigInt("9c4b891aab199741a44a5b6b632b949f7", 16);
            Point  e  = new Point(xE, yE);
            Point  a  = new Point(xA, yA);

            Assert.AreEqual(e, curve.JToA(curve.JMultiplyMut(a, l)));
        }