Esempio n. 1
0
        public void TestDHKeyExchangeTime()
        {
            var c = SrpConstants.Lookup(SrpStrength.Bits1024);

            c.g.ModPow(c.N, c.N);

            DebugStopwatch sw   = new DebugStopwatch();
            var            time = sw.TimeEvent(() => Hash <Sha1Digest> .Compute(c.Nb));

            System.Console.WriteLine(time);
        }