1
// common code for the validation and benchmark code
3
#ifndef BOTAN_CHECK_COMMON_H__
4
#define BOTAN_CHECK_COMMON_H__
11
algorithm(const char* t, const char* n,
12
u32bit k = 0, u32bit i = 0) :
13
type(t), name(n), filtername(n), keylen(k), ivlen(i) {}
14
algorithm(const char* t, const char* n,
15
const char* f, u32bit k = 0, u32bit i = 0) :
16
type(t), name(n), filtername(f), keylen(k), ivlen(i) {}
17
std::string type, name, filtername;
18
u32bit keylen, ivlen, weight;
21
std::vector<algorithm> get_algos();
23
void strip_comments(std::string& line);
24
void strip_newlines(std::string& line);
25
void strip(std::string& line);
26
std::vector<std::string> parse(const std::string& line);
28
std::string hex_encode(const byte in[], u32bit len);
29
Botan::SecureVector<byte> decode_hex(const std::string&);
31
Botan::u64bit get_clock();
32
Botan::u64bit get_ticks();