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
parent
34c4c9f1bd
commit
030de2e457
18
bench1.cpp
18
bench1.cpp
|
|
@ -383,22 +383,8 @@ void Benchmark(Test::TestClass suites, double t, double hertz)
|
|||
Benchmark1(t, hertz);
|
||||
}
|
||||
|
||||
// Shared key algorithms (MACs)
|
||||
if (suites & Test::SharedKeyMAC)
|
||||
{
|
||||
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)
|
||||
// Shared key algorithms
|
||||
if (suites & Test::SharedKey)
|
||||
{
|
||||
std::cout << "\n<BR>";
|
||||
Benchmark2(t, hertz);
|
||||
|
|
|
|||
Loading…
Reference in New Issue