benchmark.h
1 /* wolfcrypt/benchmark/benchmark.h
2  *
3  * Copyright (C) 2006-2020 wolfSSL Inc.
4  *
5  * This file is part of wolfSSL.
6  *
7  * wolfSSL is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * wolfSSL is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
20  */
21 
22 
23 #ifndef WOLFCRYPT_BENCHMARK_H
24 #define WOLFCRYPT_BENCHMARK_H
25 
26 
27 #ifdef __cplusplus
28  extern "C" {
29 #endif
30 
31 /* run all benchmark entry */
32 #ifdef HAVE_STACK_SIZE
33 THREAD_RETURN WOLFSSL_THREAD benchmark_test(void* args);
34 #else
35 int benchmark_test(void *args);
36 #endif
37 
38 /* individual benchmarks */
39 int benchmark_init(void);
40 int benchmark_free(void);
41 void benchmark_configure(int block_size);
42 
43 void bench_des(int);
44 void bench_idea(void);
45 void bench_arc4(int);
46 void bench_hc128(void);
47 void bench_rabbit(void);
48 void bench_chacha(void);
49 void bench_chacha20_poly1305_aead(void);
50 void bench_aescbc(int);
51 void bench_aesgcm(int);
52 void bench_aesccm(void);
53 void bench_aesecb(int);
54 void bench_aesxts(void);
55 void bench_aesctr(void);
56 void bench_aescfb(void);
57 void bench_aesofb(void);
58 void bench_poly1305(void);
59 void bench_camellia(void);
60 void bench_md5(int);
61 void bench_sha(int);
62 void bench_sha224(int);
63 void bench_sha256(int);
64 void bench_sha384(int);
65 void bench_sha512(int);
66 void bench_sha3_224(int);
67 void bench_sha3_256(int);
68 void bench_sha3_384(int);
69 void bench_sha3_512(int);
70 int bench_ripemd(void);
71 void bench_cmac(void);
72 void bench_scrypt(void);
73 void bench_hmac_md5(int);
74 void bench_hmac_sha(int);
75 void bench_hmac_sha224(int);
76 void bench_hmac_sha256(int);
77 void bench_hmac_sha384(int);
78 void bench_hmac_sha512(int);
79 void bench_rsaKeyGen(int);
80 void bench_rsaKeyGen_size(int, int);
81 void bench_rsa(int);
82 void bench_rsa_key(int, int);
83 void bench_dh(int);
84 void bench_eccMakeKey(int);
85 void bench_ecc(int);
86 void bench_eccEncrypt(void);
87 void bench_curve25519KeyGen(void);
88 void bench_curve25519KeyAgree(void);
89 void bench_ed25519KeyGen(void);
90 void bench_ed25519KeySign(void);
91 void bench_curve448KeyGen(void);
92 void bench_curve448KeyAgree(void);
93 void bench_ed448KeyGen(void);
94 void bench_ed448KeySign(void);
95 void bench_ntru(void);
96 void bench_ntruKeyGen(void);
97 void bench_rng(void);
98 void bench_blake2b(void);
99 void bench_blake2s(void);
100 void bench_pbkdf2(void);
101 
102 void bench_stats_print(void);
103 
104 
105 #ifdef __cplusplus
106  } /* extern "C" */
107 #endif
108 
109 
110 #endif /* WOLFCRYPT_BENCHMARK_H */
111