aboutsummaryrefslogtreecommitdiffstats
path: root/src/apps/speed/speed.h
blob: b4aabca8aceb6a19d937ffd63ead6df2f55f3daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

#ifndef BOTAN_CHECK_BENCHMARK_H__
#define BOTAN_CHECK_BENCHMARK_H__

#include "../apps.h"
#include <botan/rng.h>
#include <botan/transform.h>
#include <string>

using namespace Botan;

int speed_main(int argc, char* argv[]);

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