Exemplo n.º 1
0
        public void IntegerShouldModInverseCorrectly(string first, string second, string expected)
        {
            var result = MyBigInteger.GetModInverse(new MyBigInteger(first), new MyBigInteger(second)).ToString();

            Assert.AreEqual(expected, result);
        }
Exemplo n.º 2
0
 public static MyBigInteger CalculateSecretExponent(MyBigInteger exponent, MyBigInteger phi)
 {
     return(MyBigInteger.GetModInverse(exponent, phi));
 }