README 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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.6.4 (Oct 30, 2023)
  58. Release 5.6.4 has been developed according to wolfSSL's development and QA process (see link below) and successfully passed the quality criteria.
  59. https://www.wolfssl.com/about/wolfssl-software-development-process-quality-assurance
  60. NOTE: * --enable-heapmath is being deprecated and will be removed by 2024
  61. * Old CyaSSL/CtaoCrypt shim layer was removed in this release (5.6.4)
  62. ## Vulnerabilities
  63. * [Medium] A fix was added, but still under review for completeness, for a Bleichenbacher style attack, leading to being able to decrypt a saved TLS connection and potentially forge a signature after probing with a large number of trial connections. This issue is around RSA decryption and affects static RSA cipher suites on the server side, which are not recommended to be used and are off by default. Static RSA cipher suites were also removed from the TLS 1.3 protocol and only present in TLS 1.2 and lower. All padding versions of RSA decrypt are affected since the code under review is outside of the padding processing. Information about the private keys is NOT compromised in affected code. It's recommended to disable static RSA cipher suites and update the version of wolfSSL used if using RSA private decryption alone outside of TLS. The fix is located in this pull request (https://github.com/wolfSSL/wolfssl/pull/6896)
  64. ## New Feature Additions
  65. * DTLS 1.3 PQC: support fragmenting the second ClientHello message. This allows arbitrarily long keys to be used, opening up support for all PQC ciphersuites in DTLS 1.3.
  66. * SM2/SM3/SM4: Chinese cipher support including TLS 1.3 and 1.2 cipher suites. SM2 SP implementation available.
  67. * Ability to parse ASN1 only with SMIME_read_PKCS7
  68. * Added support for MemUse Entropy on Windows
  69. * Added Ada Bindings for wolfSSL
  70. * Added a PEM example that converts to and from DER/PEM.
  71. * Added LMS/HSS and XMSS/XMSS^MT wolfcrypt hooks, both normal and verify-only options.
  72. * Added support for the AES EAX mode of operation
  73. * Port for use with Hitch (https://github.com/varnish/hitch) added
  74. * Add XTS API's to handle multiple sectors in new port to VeraCrypt
  75. ## Enhancements and Optimizations
  76. * Turned on SNI by default on hosts with resources
  77. * Improved support for Silicon Labs Simplicity Studio and the ERF32 Gecko SDK
  78. * Thumb-2 and ARM32 Curve25519 and Ed25519 assembly have significantly improved performance.
  79. * Thumb-2 AES assembly code added.
  80. * Thumb-2 and ARM32 SP implementations of RSA, DH and ECC have significantly improved performance.
  81. * Minor performance improvements to SP ECC for Intel x64.
  82. * AES-XTS assembly code added for Intel x64, Aarch64 and ARM32.
  83. * Added support for X963 KDFs to ECIES.
  84. * Added 32-bit type only implementation of AES GMULT using tables.
  85. * Add support for nginx version 1.25.0
  86. * Add support for Kerberos version 5 1.21.1
  87. * Check all CRL entries in case a single issuer has multiple CRL's loaded
  88. * CRL verify the entire chain including loaded CA's
  89. * Added example for building wolfSSL as an Apple universal binary framework using configure
  90. * Sniffer tool now supports decrypting TLS sessions using secrets obtained from a SSLKEYLOGFILE
  91. * Updates made for EBSNET port
  92. * Update "--enable-jni" to include additional defines for expanded JNI support. Also includes JCE and JSSE builds under the single enable option now.
  93. ## Fixes
  94. * Fixed error handling when decrypted pre-master secret is too long when using static RSA.
  95. * Added a fix for keymod use with i.MX RT1170 CAAM blobs
  96. * Added a fix for AES-GCM use with Petalinux Xilinx
  97. * Fixed `wc_SignatureGenerate_ex` to not call verify twice
  98. * Fixed wolfCrypt FIPS DLL on Win32
  99. * Fixed TFM math library big-endian reading implementation when a zero length buffer is passed in.
  100. * Fixed NO_CERT configurations to build correctly.
  101. * Fixed ARM AES-GCM streaming assembly when –enable-opensslextra defined.
  102. * Added modulus checks to heap math implementation of mp_exptmod().
  103. * Fixed Windows assembly code to handle that certain XMM registers are non-volatile.
  104. * Aarch64 SP ECC implementation of sp_256_mont_dbl_4 has the register list for the assembly code fixed to include all used registers.
  105. * mp_sqrt_mod_prime fixed to limit the number of iterations of a loop to handle malicious non-prime values being passed in.
  106. * Ignore session ID's shorter than 32 bytes instead of erroring out
  107. For additional vulnerability information visit the vulnerability page at:
  108. https://www.wolfssl.com/docs/security-vulnerabilities/
  109. See INSTALL file for build instructions.
  110. More info can be found on-line at: https://wolfssl.com/wolfSSL/Docs.html
  111. *** Resources ***
  112. [wolfSSL Website](https://www.wolfssl.com/)
  113. [wolfSSL Wiki](https://github.com/wolfSSL/wolfssl/wiki)
  114. [FIPS FAQ](https://wolfssl.com/license/fips)
  115. [wolfSSL Documents](https://wolfssl.com/wolfSSL/Docs.html)
  116. [wolfSSL Manual](https://wolfssl.com/wolfSSL/Docs-wolfssl-manual-toc.html)
  117. [wolfSSL API Reference]
  118. (https://wolfssl.com/wolfSSL/Docs-wolfssl-manual-17-wolfssl-api-reference.html)
  119. [wolfCrypt API Reference]
  120. (https://wolfssl.com/wolfSSL/Docs-wolfssl-manual-18-wolfcrypt-api-reference.html)
  121. [TLS 1.3](https://www.wolfssl.com/docs/tls13/)
  122. [wolfSSL Vulnerabilities]
  123. (https://www.wolfssl.com/docs/security-vulnerabilities/)
  124. Additional wolfSSL Examples](https://github.com/wolfssl/wolfssl-examples)