2
0

nrf5340dk_nrf5340_user_settings.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /* nrf5340dk_nrf5340_user_settings.h
  2. *
  3. * Copyright (C) 2006-2023 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 WOLFSSL_OPTIONS_H
  22. #define WOLFSSL_OPTIONS_H
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26. /* Platform */
  27. #undef WOLFSSL_ZEPHYR
  28. #define WOLFSSL_ZEPHYR
  29. #define WOLFSSL_GENERAL_ALIGNMENT 4
  30. #define SIZEOF_LONG_LONG 8
  31. /* Enable PSA Crypto API for CryptoCell 312 crypto use */
  32. #define WOLFSSL_HAVE_PSA
  33. #define WOLFSSL_PSA_GLOBAL_LOCK
  34. /* Enable SP Math */
  35. #define WOLFSSL_SP_MATH
  36. #define WOLFSSL_SP_MATH_ALL
  37. #define WOLFSSL_HAVE_SP_RSA
  38. #define WOLFSSL_HAVE_SP_DH
  39. #define WOLFSSL_HAVE_SP_ECC
  40. /* Enable SP Math assembly support for ARM32 */
  41. #define SP_WORD_SIZE 32
  42. #define WOLFSSL_SP_ASM
  43. #define WOLFSSL_SP_ARM32
  44. #define WOLFSSL_SP_ARM32_ASM
  45. /* Crypto */
  46. #define WC_RSA_BLINDING
  47. #define WC_RSA_PSS
  48. #define WOLFSSL_DH_CONST
  49. #define HAVE_FFDHE_2048
  50. #define HAVE_ECC
  51. #define ECC_USER_CURVES
  52. /* #define HAVE_ECC192 */
  53. /* #define HAVE_ECC224 */
  54. #undef NO_ECC256
  55. /* #define HAVE_ECC384 */
  56. /* #define HAVE_ECC521 */
  57. #define ECC_SHAMIR
  58. #define ECC_TIMING_RESISTANT
  59. #define WOLFSSL_AES_DIRECT
  60. #define HAVE_AES_ECB
  61. #define HAVE_AES_CBC
  62. #define HAVE_AESCCM
  63. #define HAVE_AESGCM
  64. #define GCM_TABLE_4BIT
  65. /* AES-CTR is not working correctly with Nordic PSA Crypto API */
  66. /* #define WOLFSSL_AES_COUNTER */
  67. #define HAVE_CHACHA
  68. #define HAVE_POLY1305
  69. #define HAVE_ONE_TIME_AUTH
  70. /* Nordic Security PSA Crypto CryptoCell integration does not support SHA-1 */
  71. #define NO_SHA
  72. #define WOLFSSL_SHA224
  73. #define WOLFSSL_SHA384
  74. #define WOLFSSL_SHA512
  75. #define WOLFSSL_SHA3
  76. #define HAVE_HKDF
  77. #define WOLFSSL_CMAC
  78. /* Benchmark / Test */
  79. #define BENCH_EMBEDDED
  80. #define USE_CERT_BUFFERS_256
  81. #define USE_CERT_BUFFERS_2048
  82. #define NO_FILESYSTEM
  83. /* RNG */
  84. #define HAVE_HASHDRBG
  85. /* Features */
  86. #define WOLFSSL_TLS13
  87. #define WOLFSSL_OLD_PRIME_CHECK
  88. #define HAVE_TLS_EXTENSIONS
  89. #define HAVE_SUPPORTED_CURVES
  90. #define HAVE_EXTENDED_MASTER
  91. #define WOLFSSL_BASE64_ENCODE
  92. #define WC_NO_ASYNC_THREADING
  93. /* Disable features that require SHA-1 (see note above) */
  94. #define NO_OLD_TLS
  95. #define NO_DSA
  96. /* Disable other features (re-enable if needed) */
  97. #define NO_RC4
  98. #define NO_PSK
  99. #define NO_MD4
  100. #define NO_PWDBASED
  101. #define NO_DES3
  102. #if defined(CONFIG_WOLFSSL_DEBUG)
  103. #undef DEBUG_WOLFSSL
  104. #define DEBUG_WOLFSSL
  105. #endif
  106. #ifdef __cplusplus
  107. }
  108. #endif
  109. #endif /* WOLFSSL_OPTIONS_H */