aboutsummaryrefslogtreecommitdiffstats
path: root/src/speed/speed.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/speed/speed.h')
-rw-r--r--src/speed/speed.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/speed/speed.h b/src/speed/speed.h
new file mode 100644
index 000000000..d115960fb
--- /dev/null
+++ b/src/speed/speed.h
@@ -0,0 +1,23 @@
+
+#ifndef BOTAN_CHECK_BENCHMARK_H__
+#define BOTAN_CHECK_BENCHMARK_H__
+
+#include "../common.h"
+#include <botan/rng.h>
+#include <botan/transform.h>
+#include <string>
+
+using namespace Botan;
+
+void benchmark(double seconds,
+ size_t buf_size);
+
+void bench_algo(const std::string& algo_name,
+ RandomNumberGenerator& rng,
+ double seconds,
+ size_t buf_size);
+
+void bench_pk(RandomNumberGenerator& rng,
+ const std::string& algo, double seconds);
+
+#endif