benchmark.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. /* wolfcrypt/benchmark/benchmark.h
  2. *
  3. * Copyright (C) 2006-2017 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_aesccm(void);
  46. void bench_aesecb(int);
  47. void bench_aesxts(void);
  48. void bench_aesctr(void);
  49. void bench_aescfb(void);
  50. void bench_poly1305(void);
  51. void bench_camellia(void);
  52. void bench_md5(int);
  53. void bench_sha(int);
  54. void bench_sha224(int);
  55. void bench_sha256(int);
  56. void bench_sha384(int);
  57. void bench_sha512(int);
  58. void bench_sha3_224(int);
  59. void bench_sha3_256(int);
  60. void bench_sha3_384(int);
  61. void bench_sha3_512(int);
  62. int bench_ripemd(void);
  63. void bench_cmac(void);
  64. void bench_scrypt(void);
  65. void bench_hmac_md5(int);
  66. void bench_hmac_sha(int);
  67. void bench_hmac_sha224(int);
  68. void bench_hmac_sha256(int);
  69. void bench_hmac_sha384(int);
  70. void bench_hmac_sha512(int);
  71. void bench_rsaKeyGen(int);
  72. void bench_rsa(int);
  73. void bench_dh(int);
  74. void bench_eccMakeKey(int);
  75. void bench_ecc(int);
  76. void bench_eccEncrypt(void);
  77. void bench_curve25519KeyGen(void);
  78. void bench_curve25519KeyAgree(void);
  79. void bench_ed25519KeyGen(void);
  80. void bench_ed25519KeySign(void);
  81. void bench_ntru(void);
  82. void bench_ntruKeyGen(void);
  83. void bench_rng(void);
  84. void bench_blake2(void);
  85. #ifdef __cplusplus
  86. } /* extern "C" */
  87. #endif
  88. #endif /* WOLFCRYPT_BENCHMARK_H */