README 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. *** Description ***
  2. The wolfSSL embedded SSL library (formerly CyaSSL) is a lightweight SSL/TLS
  3. library written in ANSI C and targeted for embedded, RTOS, and
  4. resource-constrained environments - primarily because of its small size, speed,
  5. and feature set. It is commonly used in standard operating environments as well
  6. because of its royalty-free pricing and excellent cross platform support.
  7. wolfSSL supports industry standards up to the current TLS 1.3 and DTLS 1.3
  8. levels, is up to 20 times smaller than OpenSSL, and offers progressive ciphers
  9. such as ChaCha20, Curve25519, and Blake2b. User benchmarking and feedback
  10. reports dramatically better performance when using wolfSSL over OpenSSL.
  11. wolfSSL is powered by the wolfCrypt library. Two versions of the wolfCrypt
  12. cryptography library have been FIPS 140-2 validated (Certificate #2425 and
  13. certificate #3389). For additional information, visit the wolfCrypt FIPS FAQ
  14. (https://www.wolfssl.com/license/fips/) or contact fips@wolfssl.com
  15. *** Why choose wolfSSL? ***
  16. There are many reasons to choose wolfSSL as your embedded SSL solution. Some of
  17. the top reasons include size (typical footprint sizes range from 20-100 kB),
  18. support for the newest standards (SSL 3.0, TLS 1.0, TLS 1.1, TLS 1.2, TLS 1.3,
  19. DTLS 1.0, DTLS 1.2, and DTLS 1.3), current and progressive cipher support
  20. (including stream ciphers), multi-platform, royalty free, and an OpenSSL
  21. compatibility API to ease porting into existing applications which have
  22. previously used the OpenSSL package. For a complete feature list, see chapter 4
  23. of the wolfSSL manual. (https://www.wolfssl.com/docs/wolfssl-manual/ch4/)
  24. *** Notes, Please read ***
  25. Note 1)
  26. wolfSSL as of 3.6.6 no longer enables SSLv3 by default. wolfSSL also no longer
  27. supports static key cipher suites with PSK, RSA, or ECDH. This means if you
  28. plan to use TLS cipher suites you must enable DH (DH is on by default), or
  29. enable ECC (ECC is on by default), or you must enable static key cipher suites
  30. with
  31. WOLFSSL_STATIC_DH
  32. WOLFSSL_STATIC_RSA
  33. or
  34. WOLFSSL_STATIC_PSK
  35. though static key cipher suites are deprecated and will be removed from future
  36. versions of TLS. They also lower your security by removing PFS.
  37. When compiling ssl.c, wolfSSL will now issue a compiler error if no cipher
  38. suites are available. You can remove this error by defining
  39. WOLFSSL_ALLOW_NO_SUITES in the event that you desire that, i.e., you're not
  40. using TLS cipher suites.
  41. Note 2)
  42. wolfSSL takes a different approach to certificate verification than OpenSSL
  43. does. The default policy for the client is to verify the server, this means
  44. that if you don't load CAs to verify the server you'll get a connect error,
  45. no signer error to confirm failure (-188).
  46. If you want to mimic OpenSSL behavior of having SSL_connect succeed even if
  47. verifying the server fails and reducing security you can do this by calling:
  48. wolfSSL_CTX_set_verify(ctx, SSL_VERIFY_NONE, 0);
  49. before calling wolfSSL_new();. Though it's not recommended.
  50. Note 3)
  51. The enum values SHA, SHA256, SHA384, SHA512 are no longer available when
  52. wolfSSL is built with --enable-opensslextra (OPENSSL_EXTRA) or with the macro
  53. NO_OLD_SHA_NAMES. These names get mapped to the OpenSSL API for a single call
  54. hash function. Instead the name WC_SHA, WC_SHA256, WC_SHA384 and WC_SHA512
  55. should be used for the enum name.
  56. *** end Notes ***
  57. # wolfSSL Release 5.7.4 (Oct 24, 2024)
  58. Release 5.7.4 has been developed according to wolfSSL's development and QA
  59. process (see link below) and successfully passed the quality criteria.
  60. https://www.wolfssl.com/about/wolfssl-software-development-process-quality-assurance
  61. NOTE: * --enable-heapmath is being deprecated and will be removed by end of 2024
  62. PR stands for Pull Request, and PR <NUMBER> references a GitHub pull request
  63. number where the code change was added.
  64. ## Vulnerabilities
  65. * [Low] When the OpenSSL compatibility layer is enabled, certificate
  66. verification behaved differently in wolfSSL than OpenSSL, in the
  67. X509_STORE_add_cert() and X509_STORE_load_locations() implementations.
  68. Previously, in cases where an application explicitly loaded an intermediate
  69. certificate, wolfSSL was verifying only up to that intermediate certificate,
  70. rather than verifying up to the root CA. This only affects use cases where the
  71. API is called directly, and does not affect TLS connections. Users that call
  72. the API X509_STORE_add_cert() or X509_STORE_load_locations() directly in their
  73. applications are recommended to update the version of wolfSSL used or to have
  74. additional sanity checks on certificates loaded into the X509_STORE when
  75. verifying a certificate. (https://github.com/wolfSSL/wolfssl/pull/8087)
  76. ## PQC TLS Experimental Build Fix
  77. * When using TLS with post quantum algorithms enabled, the connection uses a
  78. smaller EC curve than agreed on. Users building with --enable-experimental and
  79. enabling PQC cipher suites with TLS connections are recommended to update the
  80. version of wolfSSL used. Thanks to Daniel Correa for the report.
  81. (https://github.com/wolfSSL/wolfssl/pull/8084)
  82. ## New Feature Additions
  83. * RISC-V 64 new assembly optimizations added for SHA-256, SHA-512, ChaCha20,
  84. Poly1305, and SHA-3 (PR 7758,7833,7818,7873,7916)
  85. * Implement support for Connection ID (CID) with DTLS 1.2 (PR 7995)
  86. * Add support for (DevkitPro)libnds (PR 7990)
  87. * Add port for Mosquitto OSP (Open Source Project) (PR 6460)
  88. * Add port for init sssd (PR 7781)
  89. * Add port for eXosip2 (PR 7648)
  90. * Add support for STM32G4 (PR 7997)
  91. * Add support for MAX32665 and MAX32666 TPU HW and ARM ASM Crypto Callback
  92. Support (PR 7777)
  93. * Add support for building wolfSSL to be used in libspdm (PR 7869)
  94. * Add port for use with Nucleus Plus 2.3 (PR 7732)
  95. * Initial support for RFC5755 x509 attribute certificates (acerts). Enabled with
  96. --enable-acert (PR 7926)
  97. * PKCS#11 RSA Padding offload allows tokens to perform CKM_RSA_PKCS
  98. (sign/encrypt), CKM_RSA_PKCS_PSS (sign), and CKM_RSA_PKCS_OAEP (encrypt).
  99. (PR 7750)
  100. * Added “newand “delete” style functions for heap/pool allocation and freeing
  101. of low level crypto structures (PR 3166 and 8089)
  102. ## Enhancements and Optimizations
  103. * Increase default max alt. names from 128 to 1024 (PR 7762)
  104. * Added new constant time DH agree function wc_DhAgree_ct (PR 7802)
  105. * Expanded compatibility layer with the API EVP_PKEY_is_a (PR 7804)
  106. * Add option to disable cryptocb test software test using
  107. --disable-cryptocb-sw-test (PR 7862)
  108. * Add a call to certificate verify callback before checking certificate dates
  109. (PR 7895)
  110. * Expanded algorithms supported with the wolfCrypt CSharp wrapper. Adding
  111. support for RNG, ECC(ECIES and ECDHE), RSA, ED25519/Curve25519, AES-GCM, and
  112. Hashing (PR 3166)
  113. * Expand MMCAU support for use with DES ECB (PR 7960)
  114. * Update AES SIV to handle multiple associated data inputs (PR 7911)
  115. * Remove HAVE_NULL_CIPHER from --enable-openssh (PR 7811)
  116. * Removed duplicate if(NULL) checks when calling XFREE (macro does) (PR 7839)
  117. * Set RSA_MIN_SIZE default to 2048 bits (PR 7923)
  118. * Added support for wolfSSL to be used as the default TLS in the zephyr kernel
  119. (PR 7731)
  120. * Add enable provider build using --enable-wolfprovider with autotools (PR 7550)
  121. * Renesas RX TSIP ECDSA support (PR 7685)
  122. * Support DTLS1.3 downgrade when the server supports CID (PR 7841)
  123. * Server-side checks OCSP even if it uses v2 multi (PR 7828)
  124. * Add handling of absent hash params in PKCS7 bundle parsing and creation
  125. (PR 7845)
  126. * Add the use of w64wrapper for Poly1305, enabling Poly1305 to be used in
  127. environments that do not have a word64 type (PR 7759)
  128. * Update to the maxq10xx support (PR 7824)
  129. * Add support for parsing over optional PKCS8 attributes (PR 7944)
  130. * Add support for either side method with DTLS 1.3 (PR 8012)
  131. * Added PKCS7 PEM support for parsing PEM data with BEGIN/END PKCS7 (PR 7704)
  132. * Add CMake support for WOLFSSL_CUSTOM_CURVES (PR 7962)
  133. * Add left-most wildcard matching support to X509_check_host() (PR 7966)
  134. * Add option to set custom SKID with PKCS7 bundle creation (PR 7954)
  135. * Building wolfSSL as a library with Ada and corrections to Alire manifest
  136. (PR 7303,7940)
  137. * Renesas RX72N support updated (PR 7849)
  138. * New option WOLFSSL_COPY_KEY added to always copy the key to the SSL object
  139. (PR 8005)
  140. * Add the new option WOLFSSL_COPY_CERT to always copy the cert buffer for each
  141. SSL object (PR 7867)
  142. * Add an option to use AES-CBC with HMAC for default session ticket enc/dec.
  143. Defaults to AES-128-CBC with HMAC-SHA256 (PR 7703)
  144. * Memory usage improvements in wc_PRF, sha256 (for small code when many
  145. registers are available) and sp_int objects (PR 7901)
  146. * Change in the configure script to work around ">>" with no command. In older
  147. /bin/sh it can be ambiguous, as used in OS’s such as FreeBSD 9.2 (PR 7876)
  148. * Don't attempt to include system headers when not required (PR 7813)
  149. * Certificates: DER encoding of ECC signature algorithm parameter is now
  150. allowed to be NULL with a define (PR 7903)
  151. * SP x86_64 asm: check for AVX2 support for VMs (PR 7979)
  152. * Update rx64n support on gr-rose (PR 7889)
  153. * Update FSP version to v5.4.0 for RA6M4 (PR 7994)
  154. * Update TSIP driver version to v1.21 for RX65N RSK (PR 7993)
  155. * Add a new crypto callback for RSA with padding (PR 7907)
  156. * Replaced the use of pqm4 with wolfSSL implementations of Kyber/MLDSA
  157. (PR 7924)
  158. * Modernized memory fence support for C11 and clang (PR 7938)
  159. * Add a CRL error override callback (PR 7986)
  160. * Extend the X509 unknown extension callback for use with a user context
  161. (PR 7730)
  162. * Additional debug error tracing added with TLS (PR 7917)
  163. * Added runtime support for library call stack traces with
  164. –enable-debug-trace-errcodes=backtrace, using libbacktrace (PR 7846)
  165. * Expanded C89 conformance (PR 8077)
  166. * Expanded support for WOLFSSL_NO_MALLOC (PR 8065)
  167. * Added support for cross-compilation of Linux kernel module (PR 7746)
  168. * Updated Linux kernel module with support for kernel 6.11 and 6.12 (PR 7826)
  169. * Introduce WOLFSSL_ASN_ALLOW_0_SERIAL to allow parsing of certificates with a
  170. serial number of 0 (PR 7893)
  171. * Add conditional repository_owner to all wolfSSL GitHub workflows (PR 7871)
  172. ### Espressif / Arduino Updates
  173. * Update wolfcrypt settings.h for Espressif ESP-IDF, template update (PR 7953)
  174. * Update Espressif sha, util, mem, time helpers (PR 7955)
  175. * Espressif _thread_local_start and _thread_local_end fix (PR 8030)
  176. * Improve benchmark for Espressif devices (PR 8037)
  177. * Introduce Espressif common CONFIG_WOLFSSL_EXAMPLE_NAME, Kconfig (PR 7866)
  178. * Add wolfSSL esp-tls and Certificate Bundle Support for Espressif ESP-IDF
  179. (PR 7936)
  180. * Update wolfssl Release for Arduino (PR 7775)
  181. ### Post Quantum Crypto Updates
  182. * Dilithium: support fixed size arrays in dilithium_key (PR 7727)
  183. * Dilithium: add option to use precalc with small sign (PR 7744)
  184. * Allow Kyber to be built with FIPS (PR 7788)
  185. * Allow Kyber asm to be used in the Linux kernel module (PR 7872)
  186. * Dilithium, Kyber: Update to final specification (PR 7877)
  187. * Dilithium: Support FIPS 204 Draft and Final Draft (PR 7909,8016)
  188. ### ARM Assembly Optimizations
  189. * ARM32 assembly optimizations added for ChaCha20 and Poly1305 (PR 8020)
  190. * Poly1305 assembly optimizations improvements for Aarch64 (PR 7859)
  191. * Poly1305 assembly optimizations added for Thumb-2 (PR 7939)
  192. * Adding ARM ASM build option to STM32CubePack (PR 7747)
  193. * Add ARM64 to Visual Studio Project (PR 8010)
  194. * Kyber assembly optimizations for ARM32 and Aarch64 (PR 8040,7998)
  195. * Kyber assembly optimizations for ARMv7E-M/ARMv7-M (PR 7706)
  196. ## Fixes
  197. * ECC key load: fixes for certificates with parameters that are not default for
  198. size (PR 7751)
  199. * Fixes for building x86 in Visual Studio for non-windows OS (PR 7884)
  200. * Fix for TLS v1.2 secret callback, incorrectly detecting bad master secret
  201. (PR 7812)
  202. * Fixes for PowerPC assembly use with Darwin and SP math all (PR 7931)
  203. * Fix for detecting older versions of Mac OS when trying to link with
  204. libdispatch (PR 7932)
  205. * Fix for DTLS1.3 downgrade to DTLS1.2 when the server sends multiple handshake
  206. packets combined into a single transmission. (PR 7840)
  207. * Fix for OCSP to save the request if it was stored in ssl->ctx->certOcspRequest
  208. (PR 7779)
  209. * Fix to OCSP for searching for CA by key hash instead of ext. key id (PR 7934)
  210. * Fix for staticmemory and singlethreaded build (PR 7737)
  211. * Fix to not allow Shake128/256 with Xilinx AFALG (PR 7708)
  212. * Fix to support PKCS11 without RSA key generation (PR 7738)
  213. * Fix not calling the signing callback when using PK callbacks + TLS 1.3
  214. (PR 7761)
  215. * Cortex-M/Thumb2 ASM fix label for IAR compiler (PR 7753)
  216. * Fix with PKCS11 to iterate correctly over slotId (PR 7736)
  217. * Stop stripping out the sequence header on the AltSigAlg extension (PR 7710)
  218. * Fix ParseCRL_AuthKeyIdExt with ASN template to set extAuthKeyIdSet value
  219. (PR 7742)
  220. * Use max key length for PSK encrypt buffer size (PR 7707)
  221. * DTLS 1.3 fix for size check to include headers and CID fixes (PR 7912,7951)
  222. * Fix STM32 Hash FIFO and add support for STM32U5A9xx (PR 7787)
  223. * Fix CMake build error for curl builds (PR 8021)
  224. * SP Maths: PowerPC ASM fix to use XOR instead of LI (PR 8038)
  225. * SSL loading of keys/certs: testing and fixes (PR 7789)
  226. * Misc. fixes for Dilithium and Kyber (PR 7721,7765,7803,8027,7904)
  227. * Fixes for building wolfBoot sources for PQ LMS/XMSS (PR 7868)
  228. * Fixes for building with Kyber enabled using CMake and zephyr port (PR 7773)
  229. * Fix for edge cases with session resumption with TLS 1.2 (PR 8097)
  230. * Fix issue with ARM ASM with AES CFB/OFB not initializing the "left" member
  231. (PR 8099)
  232. For additional vulnerability information visit the vulnerability page at:
  233. https://www.wolfssl.com/docs/security-vulnerabilities/
  234. See INSTALL file for build instructions.
  235. More info can be found on-line at: https://wolfssl.com/wolfSSL/Docs.html
  236. *** Resources ***
  237. [wolfSSL Website](https://www.wolfssl.com/)
  238. [wolfSSL Wiki](https://github.com/wolfSSL/wolfssl/wiki)
  239. [FIPS FAQ](https://wolfssl.com/license/fips)
  240. [wolfSSL Documents](https://wolfssl.com/wolfSSL/Docs.html)
  241. [wolfSSL Manual](https://wolfssl.com/wolfSSL/Docs-wolfssl-manual-toc.html)
  242. [wolfSSL API Reference]
  243. (https://wolfssl.com/wolfSSL/Docs-wolfssl-manual-17-wolfssl-api-reference.html)
  244. [wolfCrypt API Reference]
  245. (https://wolfssl.com/wolfSSL/Docs-wolfssl-manual-18-wolfcrypt-api-reference.html)
  246. [TLS 1.3](https://www.wolfssl.com/docs/tls13/)
  247. [wolfSSL Vulnerabilities]
  248. (https://www.wolfssl.com/docs/security-vulnerabilities/)
  249. Additional wolfSSL Examples](https://github.com/wolfssl/wolfssl-examples)