user_settings_wolfboot_keytools.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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-2022 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>
  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_MD5
  67. #define NO_SIG_WRAPPER
  68. #define NO_CERT
  69. #define NO_SESSION_CACHE
  70. #define NO_DES3
  71. #define NO_PWDBASED
  72. #define NO_WRITEV
  73. #define NO_FILESYSTEM
  74. //#define NO_MAIN_DRIVER
  75. #define NO_OLD_RNGNAME
  76. #define NO_WOLFSSL_DIR
  77. #define WOLFSSL_NO_SOCK
  78. #define WOLFSSL_IGNORE_FILE_WARN
  79. #define NO_ERROR_STRINGS
  80. #define BENCH_EMBEDDED
  81. #define NO_CRYPT_TEST
  82. #define NO_CRYPT_BENCHMARK
  83. #endif /* !H_USER_SETTINGS_ */