2
0

user_settings_wolfboot_keytools.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 HAVE_RSA
  53. #define WOLFSSL_HAVE_SP_RSA
  54. #define WC_RSA_BLINDING
  55. #define WOLFSSL_KEY_GEN
  56. /* Hashing */
  57. #define WOLFSSL_SHA512 /* Required for ED25519 */
  58. #define WOLFSSL_SHA384
  59. #define WOLFSSL_SHA3
  60. #undef NO_SHA256
  61. /* Chacha stream cipher */
  62. #define HAVE_CHACHA
  63. /* AES */
  64. #define WOLFSSL_AES_COUNTER
  65. #define WOLFSSL_AES_DIRECT
  66. /* Disables */
  67. #define NO_CMAC
  68. #define NO_HMAC
  69. #define NO_RC4
  70. #define NO_SHA
  71. #define NO_DH
  72. #define NO_DSA
  73. #define NO_MD4
  74. #define NO_RABBIT
  75. #define NO_MD5
  76. #define NO_SIG_WRAPPER
  77. #define NO_CERTS
  78. #define NO_SESSION_CACHE
  79. #define NO_HC128
  80. #define NO_DES3
  81. #define NO_PWDBASED
  82. #define NO_WRITEV
  83. #define NO_FILESYSTEM
  84. #define NO_OLD_RNGNAME
  85. #define NO_WOLFSSL_DIR
  86. #define WOLFSSL_NO_SOCK
  87. #define WOLFSSL_IGNORE_FILE_WARN
  88. #define NO_ERROR_STRINGS
  89. #define BENCH_EMBEDDED
  90. /* DG: Removed since we need it here for testing */
  91. /* #define NO_MAIN_DRIVER */
  92. /* #define NO_CRYPT_TEST */
  93. /* #define NO_CRYPT_BENCHMARK */
  94. #endif /* !H_USER_SETTINGS_ */