Ejemplo n.º 1
0
        private void MakeHash(HashAlgorithmCreatorDelegate creator, string algo)
        {
            HashAlgorithm cryptoAlg = creator();

            this._stopwatch.Start();
            for (int i = 0; i < runs; i++)
            {
                cryptoAlg.ComputeHash(this._message);
            }
            this._stopwatch.Stop();
            prettyPrint(algo);
        }
Ejemplo n.º 2
0
 private void MakeHash(HashAlgorithmCreatorDelegate creator, string algo)
 {
     HashAlgorithm cryptoAlg = creator();
     this._stopwatch.Start();
     for (int i = 0; i < runs; i++)
     {
         cryptoAlg.ComputeHash(this._message);
     }
     this._stopwatch.Stop();
     prettyPrint(algo);
 }