1
0

user_settings_wolfboot_keytools.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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) 2006-2024 wolfSSL Inc.
  8. *
  9. * This file is part of wolfSSL.
  10. *
  11. * wolfSSL 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. * wolfSSL 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> */ /* DG: Removed, not needed for testing */
  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 USE_FAST_MATH
  35. #define FP_MAX_BITS (4096 * 2)
  36. #define TFM_TIMING_RESISTANT
  37. /* ECC */
  38. #define HAVE_ECC
  39. #define WOLFSSL_HAVE_SP_ECC
  40. #define ECC_TIMING_RESISTANT
  41. #define HAVE_ECC256
  42. #define HAVE_ECC384
  43. #define HAVE_ECC521
  44. /* ED25519 */
  45. #define HAVE_ED25519
  46. /* DG: Added, since --enable-usersettings expects small version to be used */
  47. #define ED25519_SMALL
  48. /* ED448 */
  49. #define HAVE_ED448
  50. #define WOLFSSL_SHAKE256
  51. /* RSA */
  52. #define WOLFSSL_HAVE_SP_RSA
  53. #define WC_RSA_BLINDING
  54. #define WOLFSSL_KEY_GEN
  55. /* Hashing */
  56. #define WOLFSSL_SHA512 /* Required for ED25519 */
  57. #define WOLFSSL_SHA384
  58. #define WOLFSSL_SHA3
  59. #undef NO_SHA256
  60. /* Chacha stream cipher */
  61. #define HAVE_CHACHA
  62. /* AES */
  63. #define WOLFSSL_AES_COUNTER
  64. #define WOLFSSL_AES_DIRECT
  65. /* Disables */
  66. #define NO_CMAC
  67. #define NO_HMAC
  68. #define NO_RC4
  69. #define NO_SHA
  70. #define NO_DH
  71. #define NO_DSA
  72. #define NO_MD4
  73. #define NO_RABBIT
  74. #define NO_MD5
  75. #define NO_SIG_WRAPPER
  76. #define NO_CERTS
  77. #define NO_SESSION_CACHE
  78. #define NO_HC128
  79. #define NO_DES3
  80. #define NO_PWDBASED
  81. #define NO_WRITEV
  82. #define NO_FILESYSTEM
  83. #define NO_OLD_RNGNAME
  84. #define NO_WOLFSSL_DIR
  85. #define WOLFSSL_NO_SOCK
  86. #define WOLFSSL_IGNORE_FILE_WARN
  87. #define NO_ERROR_STRINGS
  88. #define BENCH_EMBEDDED
  89. /* DG: Removed since we need it here for testing */
  90. /* #define NO_MAIN_DRIVER */
  91. /* #define NO_CRYPT_TEST */
  92. /* #define NO_CRYPT_BENCHMARK */
  93. #endif /* !H_USER_SETTINGS_ */