Goedel.Cryptography.PKIX.RSAPrivateKey.Dump C# (CSharp) Method

Dump() public method

public Dump ( ) : void
return void
        public void Dump() {
            var BigModulus = new BigInteger(Modulus);
            Console.WriteLine("Modulus\n {0}", BigModulus.ToString());

            var BigPrivateExponent = new BigInteger(PrivateExponent);
            Console.WriteLine("BigPrivateExponent\n {0}", BigPrivateExponent.ToString());

            var BigP = new BigInteger(Prime1);
            Console.WriteLine("P\n {0}", BigP.ToString());

            var BigQ = new BigInteger(Prime2);
            Console.WriteLine("Q\n {0}", BigQ.ToString());

            var BigExponent1 = new BigInteger(Exponent1);
            Console.WriteLine("Exponent1\n {0}", BigExponent1.ToString());

            var BigExponent2 = new BigInteger(Exponent2);
            Console.WriteLine("Coefficient\n {0}", BigExponent2.ToString());

            var BigCoefficient = new BigInteger(Coefficient);
            Console.WriteLine("Coefficient\n {0}", BigCoefficient.ToString());


            var TestModulus = BigP * BigQ;
            Console.WriteLine("Test Modulus\n {0}", TestModulus.ToString());


            var Subtract = BigP + BigQ;

            Subtract = Subtract - new BigInteger(1);

            var TestCoefficient = TestModulus - Subtract;
            Console.WriteLine("Test Coefficient\n {0}", TestCoefficient.ToString());

            }