示例#1
0
文件: RSA.cs 项目: ReyyL/Lab1-RSA
 public static Integer CalculateSecretExponent(Integer exponent, Integer phi)
 => Integer.GetModInverse(exponent, phi);
示例#2
0
        public void IntegerShouldModInverseCorrectly(string first, string second, string expected)
        {
            var result = Integer.GetModInverse(new Integer(first), new Integer(second)).ToString();

            Assert.AreEqual(expected, result);
        }