My Project
Loading...
Searching...
No Matches
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
33THREAD_RETURN WOLFSSL_THREAD benchmark_test(void* args);
34#else
35int benchmark_test(void *args);
36#endif
37
38/* individual benchmarks */
39int benchmark_init(void);
40int benchmark_free(void);
41void benchmark_configure(int block_size);
42
43void bench_des(int);
44void bench_idea(void);
45void bench_arc4(int);
46void bench_hc128(void);
47void bench_rabbit(void);
48void bench_chacha(void);
49void bench_chacha20_poly1305_aead(void);
50void bench_aescbc(int);
51void bench_aesgcm(int);
52void bench_aesccm(void);
53void bench_aesecb(int);
54void bench_aesxts(void);
55void bench_aesctr(void);
56void bench_aescfb(void);
57void bench_aesofb(void);
58void bench_poly1305(void);
59void bench_camellia(void);
60void bench_md5(int);
61void bench_sha(int);
62void bench_sha224(int);
63void bench_sha256(int);
64void bench_sha384(int);
65void bench_sha512(int);
66void bench_sha3_224(int);
67void bench_sha3_256(int);
68void bench_sha3_384(int);
69void bench_sha3_512(int);
70int bench_ripemd(void);
71void bench_cmac(void);
72void bench_scrypt(void);
73void bench_hmac_md5(int);
74void bench_hmac_sha(int);
75void bench_hmac_sha224(int);
76void bench_hmac_sha256(int);
77void bench_hmac_sha384(int);
78void bench_hmac_sha512(int);
79void bench_rsaKeyGen(int);
80void bench_rsaKeyGen_size(int, int);
81void bench_rsa(int);
82void bench_rsa_key(int, int);
83void bench_dh(int);
84void bench_eccMakeKey(int);
85void bench_ecc(int);
86void bench_eccEncrypt(void);
87void bench_curve25519KeyGen(void);
88void bench_curve25519KeyAgree(void);
89void bench_ed25519KeyGen(void);
90void bench_ed25519KeySign(void);
91void bench_curve448KeyGen(void);
92void bench_curve448KeyAgree(void);
93void bench_ed448KeyGen(void);
94void bench_ed448KeySign(void);
95void bench_ntru(void);
96void bench_ntruKeyGen(void);
97void bench_rng(void);
98void bench_blake2b(void);
99void bench_blake2s(void);
100void bench_pbkdf2(void);
101
102void bench_stats_print(void);
103
104
105#ifdef __cplusplus
106 } /* extern "C" */
107#endif
108
109
110#endif /* WOLFCRYPT_BENCHMARK_H */
111