private void MakeEncription(SymmetricAlgorithmDelegate creator, string algo) { SymmetricAlgorithm cryptoAlg = creator(); ICryptoTransform enc = cryptoAlg.CreateEncryptor(cryptoAlg.Key, cryptoAlg.IV); ICryptoTransform decr = cryptoAlg.CreateDecryptor(cryptoAlg.Key, cryptoAlg.IV); this._stopwatch.Reset(); this._stopwatch.Start(); for (int i = 0; i < runs; i++) { enc.TransformBlock(_message, 0, this._inputSize, this._cryptoText, 0); } this._stopwatch.Stop(); this.prettyPrint(algo + "Encrypt"); this._stopwatch.Start(); for (int i = 0; i < runs; i++) { decr.TransformBlock(_message, 0, this._inputSize, this._cryptoText, 0); } this._stopwatch.Stop(); this.prettyPrint(algo + "Decrypt"); }