Fix multiple output of shared key benchmarks

Benchmark2 is used to benchmark shared key algorithms. At the moment Benchmark2 is all or nothing. It does not understand SharedKeyMAC, SharedKeyStream, SharedKeyBlock. It will be fixed in the future.
pull/450/head
Jeffrey Walton 2017-07-23 23:25:39 -04:00
parent 34c4c9f1bd
commit 030de2e457
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 2 additions and 16 deletions

View File

@ -383,22 +383,8 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
Benchmark1(t, hertz); Benchmark1(t, hertz);
} }
// Shared key algorithms (MACs) // Shared key algorithms
if (suites & Test::SharedKeyMAC) if (suites & Test::SharedKey)
{
std::cout << "\n<BR>";
Benchmark2(t, hertz);
}
// Shared key algorithms (stream ciphers)
if (suites & Test::SharedKeyStream)
{
std::cout << "\n<BR>";
Benchmark2(t, hertz);
}
// Shared key algorithms (block ciphers)
if (suites & Test::SharedKeyBlock)
{ {
std::cout << "\n<BR>"; std::cout << "\n<BR>";
Benchmark2(t, hertz); Benchmark2(t, hertz);