2
0

user_settings.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /* user_settings.h
  2. *
  3. * Copyright (C) 2006-2022 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. /*
  22. * user_settings.h
  23. *
  24. * Created on: Mar 20, 2020
  25. * Generated using:
  26. * ./configure --enable-cryptonly --enable-armasm --enable-ecc --enable-aesgcm --enable-pwdbased --enable-sp --enable-sp-asm \
  27. * --disable-dh --disable-sha --disable-md5 --disable-sha224 --disable-aescbc --disable-shake256
  28. * Result: wolfssl/options.h
  29. */
  30. #ifndef SRC_USER_SETTINGS_H_
  31. #define SRC_USER_SETTINGS_H_
  32. /* Disable all TLS support, only wolfCrypt features */
  33. #define WOLFCRYPT_ONLY
  34. /* Xilinx SDK */
  35. #define WOLFSSL_XILINX
  36. #define SINGLE_THREADED
  37. #define NO_FILESYSTEM
  38. /* Platform - remap printf */
  39. #include "xil_printf.h"
  40. #define XPRINTF xil_printf
  41. /* Enable ARMv8 (Aarch64) assembly speedups - SHA256 / AESGCM */
  42. /* Note: Requires CFLAGS="-mcpu=generic+crypto -mstrict-align" */
  43. #define WOLFSSL_ARMASM
  44. /* Math */
  45. #define USE_FAST_MATH
  46. #define FP_MAX_BITS (4096 * 2) /* Max RSA 4096-bit */
  47. /* Use Single Precision assembly math speedups for ECC */
  48. #define WOLFSSL_SP
  49. #define WOLFSSL_SP_ASM
  50. #define WOLFSSL_SP_ARM64_ASM
  51. #define WOLFSSL_HAVE_SP_ECC
  52. #define WOLFSSL_HAVE_SP_RSA
  53. /* Random: HashDRGB / P-RNG (SHA256) */
  54. #define HAVE_HASHDRBG
  55. extern unsigned char my_rng_seed_gen(void);
  56. #define CUSTOM_RAND_GENERATE my_rng_seed_gen
  57. /* Timing Resistance */
  58. #define TFM_TIMING_RESISTANT
  59. #define ECC_TIMING_RESISTANT
  60. #define WC_RSA_BLINDING
  61. /* ECC */
  62. #define HAVE_ECC
  63. #define TFM_ECC256
  64. #define ECC_SHAMIR
  65. /* DH */
  66. #undef NO_DH
  67. #define WOLFSSL_DH_CONST
  68. #define HAVE_FFDHE_2048
  69. #define HAVE_FFDHE_4096
  70. /* Curve25519 / Ed25519 */
  71. #define HAVE_CURVE25519
  72. #define HAVE_ED25519 /* ED25519 Requires SHA512 */
  73. /* 25519 assumes UINT128_T is available for Aarch64 */
  74. #ifndef HAVE___UINT128_T
  75. #define HAVE___UINT128_T
  76. #endif
  77. /* ChaCha20 / Poly1305 */
  78. #define HAVE_CHACHA
  79. #define HAVE_POLY1305
  80. /* AES-GCM Only */
  81. #define NO_AES_CBC
  82. #define HAVE_AESGCM
  83. /* Hashing */
  84. #define WOLFSSL_SHA512
  85. #define WOLFSSL_SHA384
  86. #define WOLFSSL_SHA3
  87. #define WOLFSSL_NO_HASH_RAW /* not supported with ARMASM */
  88. /* HKDF */
  89. #define HAVE_HKDF
  90. /* Disable Algorithms */
  91. #define NO_DSA
  92. #define NO_RC4
  93. #define NO_MD4
  94. #define NO_MD5
  95. #define NO_SHA
  96. #define NO_PSK
  97. #define NO_DES3
  98. /* Other */
  99. #define WOLFSSL_IGNORE_FILE_WARN /* Ignore file include warnings */
  100. #define NO_MAIN_DRIVER /* User supplied "main" entry point */
  101. #define BENCH_EMBEDDED /* Use smaller buffers for benchmarking */
  102. /* Test with "wolfssl/certs_test.h" buffers - no file system */
  103. #define USE_CERT_BUFFERS_256
  104. #define USE_CERT_BUFFERS_2048
  105. /* Debugging */
  106. #if 0
  107. #define DEBUG_WOLFSSL
  108. #endif
  109. #endif /* SRC_USER_SETTINGS_H_ */