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