user_settings_wolfboot_keytools.h 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. /* user_settings_wolfboot_keytools.h
  2. *
  3. * wolfCrypt build settings for wolfBoot keygen and signing tool
  4. * Enabled via WOLFSSL_USER_SETTINGS.
  5. *
  6. *
  7. * Copyright (C) 2020 wolfSSL Inc.
  8. *
  9. * This file is part of wolfBoot.
  10. *
  11. * wolfBoot is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * wolfBoot is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
  24. */
  25. #ifndef H_USER_SETTINGS_
  26. #define H_USER_SETTINGS_
  27. #include <stdint.h>
  28. /* System */
  29. #define WOLFSSL_GENERAL_ALIGNMENT 4
  30. #define SINGLE_THREADED
  31. #define WOLFCRYPT_ONLY
  32. #define SIZEOF_LONG_LONG 8
  33. /* Math */
  34. #define WOLFSSL_SP
  35. #define WOLFSSL_SP_NO_3072
  36. #define USE_FAST_MATH
  37. #define FP_MAX_BITS (4096 * 2)
  38. #define TFM_TIMING_RESISTANT
  39. /* ECC */
  40. #define HAVE_ECC
  41. #define WOLFSSL_HAVE_SP_ECC
  42. #define ECC_TIMING_RESISTANT
  43. /* ED25519 */
  44. #define HAVE_ED25519
  45. #define CURVED25519_SMALL
  46. /* RSA */
  47. #define HAVE_RSA
  48. #define WOLFSSL_HAVE_SP_RSA
  49. #define WC_RSA_BLINDING
  50. #define WOLFSSL_KEY_GEN
  51. /* Hashing */
  52. #define WOLFSSL_SHA512 /* Required for ED25519 */
  53. #define WOLFSSL_SHA3
  54. #undef NO_SHA256
  55. /* Chacha stream cipher */
  56. #define HAVE_CHACHA
  57. /* Disables */
  58. #define NO_AES
  59. #define NO_CMAC
  60. #define NO_HMAC
  61. #define NO_RC4
  62. #define NO_SHA
  63. #define NO_DH
  64. #define NO_DSA
  65. #define NO_MD4
  66. #define NO_RABBIT
  67. #define NO_MD5
  68. #define NO_SIG_WRAPPER
  69. #define NO_CERT
  70. #define NO_SESSION_CACHE
  71. #define NO_HC128
  72. #define NO_DES3
  73. #define NO_PWDBASED
  74. #define NO_WRITEV
  75. #define NO_FILESYSTEM
  76. //#define NO_MAIN_DRIVER
  77. #define NO_OLD_RNGNAME
  78. #define NO_WOLFSSL_DIR
  79. #define WOLFSSL_NO_SOCK
  80. #define WOLFSSL_IGNORE_FILE_WARN
  81. #define NO_ERROR_STRINGS
  82. #define BENCH_EMBEDDED
  83. #define NO_CRYPT_TEST
  84. #define NO_CRYPT_BENCHMARK
  85. #endif /* !H_USER_SETTINGS_ */