aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli/implementation/speed.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2015-12-19 15:36:40 -0500
committerJack Lloyd <[email protected]>2015-12-19 15:36:40 -0500
commitb48e6fb097c62bb246629ee7a182c57e497e4130 (patch)
tree0cb8ea2d05a89f5e90467f323ae56268d4d3480e /src/cli/implementation/speed.h
parentd774a9edc46ffcebb28205a678058f083ea75c28 (diff)
CLI rewrite
The command line tools' origin as a collection of examples and test programs glued together led to some unfortunate problems; lots of hardcoded values, missing parameters, and obsolete crypto. Adds a small library for writing command line programs of the sort needed here (cli.h), which cuts the length of many of the commands in half and makes commands more pleasant to write and extend. Generalizes a lot of the commands also, eg previously only signing/verification with DSA/SHA-1 was included! Removes the fuzzer entry point since that's fairly useless outside of an instrumented build. Removes the in-library API for benchmarking.
Diffstat (limited to 'src/cli/implementation/speed.h')
-rw-r--r--src/cli/implementation/speed.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/cli/implementation/speed.h b/src/cli/implementation/speed.h
deleted file mode 100644
index 3cfd0ef61..000000000
--- a/src/cli/implementation/speed.h
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-* (C) 2014 Jack Lloyd
-* (C) 2015 Simon Warta (Kullo GmbH)
-*
-* Botan is released under the Simplified BSD License (see license.txt)
-*/
-
-#ifndef BOTAN_CHECK_BENCHMARK_H__
-#define BOTAN_CHECK_BENCHMARK_H__
-
-#include <botan/rng.h>
-#include <string>
-#include <chrono>
-
-void benchmark_public_key(Botan::RandomNumberGenerator& rng,
- const std::string& algo,
- const std::string& provider,
- double seconds);
-
-std::map<std::string, double> benchmark_is_prime(Botan::RandomNumberGenerator &rng,
- const std::chrono::milliseconds runtime);
-
-std::map<std::string, double> benchmark_random_prime(Botan::RandomNumberGenerator &rng,
- const std::chrono::milliseconds runtime);
-
-bool benchmark_transform(Botan::RandomNumberGenerator& rng, const std::string& algo_name,
- const std::chrono::milliseconds runtime);
-
-
-#endif