README 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  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.0 (Mar 20, 2024)
  58. Release 5.7.0 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. NOTE: In future releases, --enable-des3 (which is disabled by default) will be insufficient in itself to enable DES3 in TLS cipher suites. A new option, --enable-des3-tls-suites, will need to be supplied in addition. This option should only be used in backward compatibility scenarios, as it is inherently insecure.
  63. NOTE: This release switches the default ASN.1 parser to the new ASN template code. If the original ASN.1 code is preferred define `WOLFSSL_ASN_ORIGINAL` to use it. See PR #7199.
  64. ## Vulnerabilities
  65. * [High] CVE-2024-0901 Potential denial of service and out of bounds read. Affects TLS 1.3 on the server side when accepting a connection from a malicious TLS 1.3 client. If using TLS 1.3 on the server side it is recommended to update the version of wolfSSL used. Fixed in this GitHub pull request https://github.com/wolfSSL/wolfssl/pull/7099
  66. * [Med] CVE-2024-1545 Fault Injection vulnerability in RsaPrivateDecryption function that potentially allows an attacker that has access to the same system with a victims process to perform a Rowhammer fault injection. Thanks to Junkai Liang, Zhi Zhang, Xin Zhang, Qingni Shen for the report (Peking University, The University of Western Australia)."
  67. Fixed in this GitHub pull request https://github.com/wolfSSL/wolfssl/pull/7167
  68. * [Med] Fault injection attack with EdDSA signature operations. This affects ed25519 sign operations where the system could be susceptible to Rowhammer attacks. Thanks to Junkai Liang, Zhi Zhang, Xin Zhang, Qingni Shen for the report (Peking University, The University of Western Australia).
  69. Fixed in this GitHub pull request https://github.com/wolfSSL/wolfssl/pull/7212
  70. ## New Feature Additions
  71. * Added --enable-experimental configure flag to gate out features that are currently experimental. Now liboqs, kyber, lms, xmss, and dual-alg-certs require the --enable-experimental flag.
  72. ### POST QUANTUM SUPPORT ADDITIONS
  73. * Experimental framework for using wolfSSL’s XMSS implementation (PR 7161)
  74. * Experimental framework for using wolfSSL’s LMS implementation (PR 7283)
  75. * Experimental wolfSSL Kyber implementation and assembly optimizations, enabled with --enable-experimental --enable-kyber (PR 7318)
  76. * Experimental support for post quantum dual key/signature certificates. A few known issues and sanitizer checks are in progress with this feature. Enabled with the configure flags --enable-experimental --enable-dual-alg-certs (PR 7112)
  77. * CryptoCb support for PQC algorithms (PR 7110)
  78. ### OTHER FEATURE ADDITIONS
  79. * The Linux kernel module now supports registration of AES-GCM, AES-XTS, AES-CBC, and AES-CFB with the kernel cryptosystem through the new --enable-linuxkm-lkcapi-register option, enabling automatic use of wolfCrypt implementations by the dm-crypt/luks and ESP subsystems. In particular, wolfCrypt AES-XTS with –enable-aesni is faster than the native kernel implementation.
  80. * CryptoCb hook to one-shot CMAC functions (PR 7059)
  81. * BER content streaming support for PKCS7_VerifySignedData and sign/encrypt operations (PR 6961 & 7184)
  82. * IoT-Safe SHA-384 and SHA-512 support (PR 7176)
  83. * I/O callbacks for content and output with PKCS7 bundle sign/encrypt to reduce peak memory usage (PR 7272)
  84. * Microchip PIC24 support and example project (PR 7151)
  85. * AutoSAR shim layer for RNG, SHA256, and AES (PR 7296)
  86. * wolfSSL_CertManagerUnloadIntermediateCerts API to clear intermediate certs added to certificate store (PR 7245)
  87. * Implement SSL_get_peer_signature_nid and SSL_get_peer_signature_type_nid (PR 7236)
  88. ## Enhancements and Optimizations
  89. * Remove obsolete user-crypto functionality and Intel IPP support (PR 7097)
  90. * Support for RSA-PSS signatures with CRL use (PR 7119)
  91. * Enhancement for AES-GCM use with Xilsecure on Microblaze (PR 7051)
  92. * Support for crypto cb only build with ECC and NXP CAAM (PR 7269)
  93. * Improve liboqs integration adding locking and init/cleanup functions (PR 7026)
  94. * Prevent memory access before clientSession->serverRow and clientSession->serverIdx are sanitized (PR 7096)
  95. * Enhancements to reproducible build (PR 7267)
  96. * Update Arduino example TLS Client/Server and improve support for ESP32 (PR 7304 & 7177)
  97. * XC32 compiler version 4.x compatibility (PR 7128)
  98. * Porting for build on PlayStation 3 and 4 (PR 7072)
  99. * Improvements for Espressif use; SHA HW/SW selection and use on ESP32-C2/ESP8684, wolfSSL_NewThread() type, component cmake fix, and update TLS client example for ESP8266 (PR 7081, 7173, 7077, 7148, 7240)
  100. * Allow crypto callbacks with SHA-1 HW (PR 7087)
  101. * Update OpenSSH port to version 9.6p1(PR 7203)
  102. * ARM Thumb2 enhancements, AES-GCM support for GCM_SMALL, alignment fix on key, fix for ASM clobber list (PR 7291,7301,7221)
  103. * Expand heap hint support for static memory build with more x509 functions (PR 7136)
  104. * Improving ARMv8 ChaCha20 ASM (alignment) (PR 7182)
  105. * Unknown extension callback wolfSSL_CertManagerSetUnknownExtCallback added to CertManager (PR 7194)
  106. * Implement wc_rng_new_ex for use with devID’s with crypto callback (PR 7271)
  107. * Allow reading 0-RTT data after writing 0.5-RTT data (PR 7102)
  108. * Send alert on bad PSK binder error (PR 7235)
  109. * Enhancements to CMake build files for use with cross compiling (PR 7188)
  110. ## Fixes
  111. * Fix for checking result of MAC verify when no AAD is used with AES-GCM and Xilinx Xilsecure (PR 7051)
  112. * Fix for Aria sign use (PR 7082)
  113. * Fix for invalid `dh_ffdhe_test` test case using Intel QuickAssist (PR 7085)
  114. * Fixes for TI AES and SHA on TM4C with HW acceleration and add full AES GCM and CCM support with TLS (PR 7018)
  115. * Fixes for STM32 PKA use with ECC (PR 7098)
  116. * Fixes for TLS 1.3 with crypto callbacks to offload KDF / HMAC operation (PR 7070)
  117. * Fix include path for FSP 3.5 on Renesas RA6M4 (PR 7101)
  118. * Siphash x64 asm fix for use with older compilers (PR 7299)
  119. * Fix for SGX build with SP (PR 7308)
  120. * Fix to Make it mandatory that the cookie is sent back in new ClientHello when seen in a HelloRetryRequest with (PR 7190)
  121. * Fix for wrap around behavior with BIO pairs (PR 7169)
  122. * OCSP fixes for parsing of response correctly when there was a revocation reason and returning correct error value with date checks (PR 7241 & 7255)
  123. * Fix build with `NO_STDIO_FILESYSTEM` and improve checks for `XGETENV` (PR 7150)
  124. * Fix for DTLS sequence number and cookie when downgrading DTLS version (PR 7214)
  125. * Fix for write_dup use with chacha-poly cipher suites (PR 7206)
  126. * Fix for multiple handshake messages in one record failing with OUT_OF_ORDER_E when downgrading from TLS 1.3 to TLS 1.2 (PR 7141)
  127. * Fix for AES ECB build with Thumb and alignment (PR 7094)
  128. * Fix for negotiate handshake until the end in wolfSSL_read/wolfSSL_write if hitting an edge case with want read/write (PR 7237)
  129. For additional vulnerability information visit the vulnerability page at:
  130. https://www.wolfssl.com/docs/security-vulnerabilities/
  131. See INSTALL file for build instructions.
  132. More info can be found on-line at: https://wolfssl.com/wolfSSL/Docs.html
  133. *** Resources ***
  134. [wolfSSL Website](https://www.wolfssl.com/)
  135. [wolfSSL Wiki](https://github.com/wolfSSL/wolfssl/wiki)
  136. [FIPS FAQ](https://wolfssl.com/license/fips)
  137. [wolfSSL Documents](https://wolfssl.com/wolfSSL/Docs.html)
  138. [wolfSSL Manual](https://wolfssl.com/wolfSSL/Docs-wolfssl-manual-toc.html)
  139. [wolfSSL API Reference]
  140. (https://wolfssl.com/wolfSSL/Docs-wolfssl-manual-17-wolfssl-api-reference.html)
  141. [wolfCrypt API Reference]
  142. (https://wolfssl.com/wolfSSL/Docs-wolfssl-manual-18-wolfcrypt-api-reference.html)
  143. [TLS 1.3](https://www.wolfssl.com/docs/tls13/)
  144. [wolfSSL Vulnerabilities]
  145. (https://www.wolfssl.com/docs/security-vulnerabilities/)
  146. Additional wolfSSL Examples](https://github.com/wolfssl/wolfssl-examples)