コード例 #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);
        }
コード例 #2
0
ファイル: AlgorithmRSA.cs プロジェクト: dnrkvn/Labotatory_1
 public static MyBigInteger CalculateSecretExponent(MyBigInteger exponent, MyBigInteger phi)
 {
     return(MyBigInteger.GetModInverse(exponent, phi));
 }