aboutsummaryrefslogtreecommitdiffstats
path: root/checks/common.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2009-09-24 16:44:26 +0000
committerlloyd <[email protected]>2009-09-24 16:44:26 +0000
commit6cb4b06db7855fa8bec60b2965fe34fb01e5896c (patch)
tree4c99b8d613ce1551f2a27cda05e1d67988563072 /checks/common.h
parente06cb7dcf09e17cb0e76d42e096ca838c17a60bc (diff)
Modify the self test program to use the builtin runtime benchmarking goop.
Features dropped: RNG benchmarking, the --bench-type option. New feature: Anything the library understands can be benchmarked using --bench-algo. Use 3DES and Serpent for mode benchmarking along with AES-128.
Diffstat (limited to 'checks/common.h')
-rw-r--r--checks/common.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/checks/common.h b/checks/common.h
index fa41882ee..5b8f0a5d0 100644
--- a/checks/common.h
+++ b/checks/common.h
@@ -14,20 +14,7 @@
using Botan::byte;
using Botan::u32bit;
-
-struct algorithm
- {
- algorithm(const char* t, const char* n,
- u32bit k = 0, u32bit i = 0) :
- type(t), name(n), filtername(n), keylen(k), ivlen(i) {}
- algorithm(const char* t, const char* n,
- const char* f, u32bit k = 0, u32bit i = 0) :
- type(t), name(n), filtername(f), keylen(k), ivlen(i) {}
- std::string type, name, filtername;
- u32bit keylen, ivlen, weight;
- };
-
-std::vector<algorithm> get_algos();
+using Botan::u64bit;
void strip_comments(std::string& line);
void strip_newlines(std::string& line);