public void IntegerShouldModInverseCorrectly(string first, string second, string expected) { var result = MyBigInteger.GetModInverse(new MyBigInteger(first), new MyBigInteger(second)).ToString(); Assert.AreEqual(expected, result); }
public static MyBigInteger CalculateSecretExponent(MyBigInteger exponent, MyBigInteger phi) { return(MyBigInteger.GetModInverse(exponent, phi)); }