benchmark.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. /* wolfcrypt/benchmark/benchmark.h
  2. *
  3. * Copyright (C) 2006-2021 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. #ifndef WOLFCRYPT_BENCHMARK_H
  22. #define WOLFCRYPT_BENCHMARK_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* run all benchmark entry */
  27. #ifdef HAVE_STACK_SIZE
  28. THREAD_RETURN WOLFSSL_THREAD benchmark_test(void* args);
  29. #else
  30. int benchmark_test(void *args);
  31. #endif
  32. /* individual benchmarks */
  33. int benchmark_init(void);
  34. int benchmark_free(void);
  35. void benchmark_configure(int block_size);
  36. void bench_des(int);
  37. void bench_idea(void);
  38. void bench_arc4(int);
  39. void bench_hc128(void);
  40. void bench_rabbit(void);
  41. void bench_chacha(void);
  42. void bench_chacha20_poly1305_aead(void);
  43. void bench_aescbc(int);
  44. void bench_aesgcm(int);
  45. void bench_gmac(void);
  46. void bench_aesccm(void);
  47. void bench_aesecb(int);
  48. void bench_aesxts(void);
  49. void bench_aesctr(void);
  50. void bench_aescfb(void);
  51. void bench_aesofb(void);
  52. void bench_poly1305(void);
  53. void bench_camellia(void);
  54. void bench_md5(int);
  55. void bench_sha(int);
  56. void bench_sha224(int);
  57. void bench_sha256(int);
  58. void bench_sha384(int);
  59. void bench_sha512(int);
  60. void bench_sha3_224(int);
  61. void bench_sha3_256(int);
  62. void bench_sha3_384(int);
  63. void bench_sha3_512(int);
  64. int bench_ripemd(void);
  65. void bench_cmac(void);
  66. void bench_scrypt(void);
  67. void bench_hmac_md5(int);
  68. void bench_hmac_sha(int);
  69. void bench_hmac_sha224(int);
  70. void bench_hmac_sha256(int);
  71. void bench_hmac_sha384(int);
  72. void bench_hmac_sha512(int);
  73. void bench_rsaKeyGen(int);
  74. void bench_rsaKeyGen_size(int, int);
  75. void bench_rsa(int);
  76. void bench_rsa_key(int, int);
  77. void bench_dh(int);
  78. void bench_ecc_curve(int curveId);
  79. void bench_eccMakeKey(int, int);
  80. void bench_ecc(int, int);
  81. void bench_eccEncrypt(int);
  82. void bench_curve25519KeyGen(void);
  83. void bench_curve25519KeyAgree(void);
  84. void bench_ed25519KeyGen(void);
  85. void bench_ed25519KeySign(void);
  86. void bench_curve448KeyGen(void);
  87. void bench_curve448KeyAgree(void);
  88. void bench_ed448KeyGen(void);
  89. void bench_ed448KeySign(void);
  90. void bench_eccsiKeyGen(void);
  91. void bench_eccsiPairGen(void);
  92. void bench_eccsiValidate(void);
  93. void bench_eccsi(void);
  94. void bench_sakkeKeyGen(void);
  95. void bench_sakkeRskGen(void);
  96. void bench_sakkeValidate(void);
  97. void bench_sakke(void);
  98. void bench_ntru(void);
  99. void bench_ntruKeyGen(void);
  100. void bench_rng(void);
  101. void bench_blake2b(void);
  102. void bench_blake2s(void);
  103. void bench_pbkdf2(void);
  104. void bench_stats_print(void);
  105. #ifdef __cplusplus
  106. } /* extern "C" */
  107. #endif
  108. #endif /* WOLFCRYPT_BENCHMARK_H */