RECENT BLOG NEWS
wolfSSL FIPS-Ready
With the recent release of wolfSSL 4.1.0, the wolfSSL team has also updated the wolfSSL FIPS Ready library. This product features new, state of the art concepts and technology. In a single sentence, wolfSSL FIPS Ready is a testable and free to download open source embedded SSL/TLS library with support for FIPS validation, with FIPS enabled cryptography layer code included in the wolfSSL source tree. To further elaborate on what FIPS Ready really means, you do not get a FIPS certificate and you are not FIPS approved. FIPS Ready means that you have included the FIPS code into your build and that you are operating according to the FIPS enforced best practices of default entry point, and Power On Self Test (POST).
FIPS validation is a government certification for cryptographic modules that states the module in question has undergone thorough and rigorous testing to be certified. FIPS validation specifies that a software/encryption module is able to be used within or alongside government systems. The most recent FIPS specification is 140-2, with various levels of security offered (1-5). Currently, wolfCrypt has FIPS 140-2 validation with certificates #2425 and #3389. When trying to get software modules FIPS validated, this is often a costly and time-consuming effort and as such causes the FIPS validated modules to have high price tags.
Since the majority of wolfSSL products use the wolfCrypt encryption engine, this also means that if wolfSSH, wolfMQTT (with TLS support), wolfBoot, and other wolfSSL products are in place, they can be tested using FIPS validated code with their software before committing.
wolfSSL FIPS Ready can be downloaded from the wolfSSL download page, here: https://www.wolfssl.com/download/
If you have any questions or run into any issues, contact us at facts@wolfssl.com, or call us at +1 425 245 8247.
wolfTPM v1.6 Release
wolfTPM version 1.6 has been released (08/01/2019) and is available for download! This release includes improvements for compatibility, chip detection, initialization options and small stack support. This version adds new wrapper API’s for PCR extend as well as support for using HMAC with an existing key.
A full list of the release notes are listed below:
- Fix for wolfCrypt init/cleanup issue with reference count. (PR #75)
- Fix to restore existing TPM context after calling
wolfTPM2_Test
. (PR #74) - Fix to resolve handling of unsupported ECC curves with the TPM module and ECDHE. (PR #69)
- Fix for
wolfTPM2_SetCommand
to ensure auth is cleared. (PR #69) - Added
--enable-smallstack
build options for reducing stack usage. (PR #73) - Added support for keeping an HMAC key loaded. (PR #72)
- Added API unit test framework. (PR #71)
- Added new wrapper API
wolfTPM2_OpenExisting
for accessing device that’s already started. (PR #71) - Added new
wolfTPM2_ExtendPCR
wrapper. (PR #70) - Added crypto callback flags for FIPS mode and Use Symmetric options. (PR #69)
- Added
WOLFTPM_DEBUG_TIMEOUT
macro for debugging the timeout checking. (PR #69) - Added support for ST33
TPM2_SetMode
command for disabling power saving. (PR #69) - Improvements for chip detection, compatibility and startup performance (PR #67)
- Added support for
XPRINTF
. - Fix printf type warnings.
- Moved the TPM hardware type build macro detection until after the
user_settings.h
include. - Optimization to initialize Mutex and RNG only when use is required.
- Added missing stdio.h for printf in examples.
- Added new API’s
TPM2_SetActiveCtx
,TPM2_ChipStartup
,TPM2_SetHalIoCb
andTPM2_Init_ex
. - Allowed way to indicate
BOOL
type already defined. - Added C++ support.
- Added new API
wolfTPM2_Test
for testing for TPM and optionally returning capabilities. (PR #66) - Added way to include generated
wolftpm/options.h
(or customized one) usingWOLFTPM_USER_SETTINGS
. (PR #63)
You can download the latest release here: https://www.wolfssl.com/download/
Additional information on wolfTPM can be found on the wolfTPM product page.
If you have any questions or run into any issues, contact us at facts@wolfssl.com, or call us at +1 425 245 8247.
wolfMQTT v1.3.0 Release
wolfMQTT v1.3.0 has been released (08/01/2019) and is available for download. With this release comes multithread support with the enable option --enable-mt
, various fixes and improvements to examples, and more.
A full list of wolfMQTT 1.3.0 release notes are listed below:
- Fix
fwpush
example to use filename option-f
. (PR #117) - Added multiple thread support using
--enable-mt
orWOLFMQTT_MULTITHREAD
. (PR #115) - Fix for
MQTT_DATA_TYPE_BINARY
data length encoded twice. (PR #112) - Fix to clear local structures for subscribe and unsubscribe ACK’s. (PR #112)
- Fix for
SN_Encode_Unsubscribe
using wrong data type for topic name ID. (PR #110) - Add
WOLFSSL_USER_SETTINGS
to VS project files. (PR #109) - Fixes for using RTCS in
mqttnet.c
socket example code. (PR #108) - Fix MQTT-SN decode publish parsing and QoS2 response. (PR #107)
- Make MqttSocket_TlsSocket callbacks public. (PR #104)
- Improved the disconnect network error callback example. (PR #102)
- Add MQTT context information to socket callback examples. (PR #101)
- Initialize subscribe state to
MQTT_MSG_BEGIN
. (PR #99) - Fix for Harmony possible circular include issue. (PR #98)
You can download the latest release here: https://www.wolfssl.com/download/
If you have any questions or run into any issues, contact us at facts@wolfssl.com, or call us at +1 425 245 8247.
MORE TINY CURL
Author: Daniel Stenberg
Without much fanfare or fireworks we put together and shipped a fresh new version of tiny-curl. We call it version 0.10 and it is based on the 7.65.3 curl tree.
tiny-curl is a patch set to build curl as tiny as possible while still being able to perform HTTPS GET requests and maintaining the libcurl API. Additionally, tiny-curl is ported to FreeRTOS.
Changes in 0.10
- The largest and primary change is that this version is based on curl 7.65.3, which brings more features and in particular more bug fixes compared to tiny-curl 0.9.
- Parts of the patches used for tiny-curl 0.9 was subsequently upstreamed and merged into curl proper, making the tiny-curl 0.10 patch much smaller.
Download
As before, tiny-curl is an effort that is on a separate track from the main curl. Download tiny-curl from wolfssl.com!
If you have any questions or run into any issues, contact us at facts@wolfssl.com, or call us at +1 425 245 8247.
wolfBoot v1.2 Now Available!
The wolfSSL wolfBoot Secure Bootloader version 1.2 is now available! With this release comes various improvements and updates, including additional hardware support. Below lists the release notes associated with version 1.2:
– Added support for multiple architectures
– key generation and signing tools rewritten in python for portability
– Added compile-time option to move flash-writing functions to RAM
– Introduced the possibility for the bootloader to update itself
– Fixed compile issues on macOS and WSL
– Hardware support
- Added RV32 RISC-V architecture
- Added hardware-assisted dual-bank support on STM32F76x/77x
- new HAL: RV32 FE310 (SiFive HiFive-1)
- new HAL: STM32L0
- new HAL: STM32G0
- new HAL: STM32F7
- new HAL: STM32WB
The latest version of wolfBoot is available for download here: https://wolfssl.com/download/
More information about boot loaders can be found here: https://en.wikipedia.org/wiki/Booting#BOOT-LOADER
If you have any questions or run into any issues, contact us at facts@wolfssl.com, or call us at +1 425 245 8247.
wolfSSL with WSL (Windows Subsystem for Linux)
Microsoft has created a Linux subsystem that allows running Linux distributions on Windows 10. This blog describes the steps for building and running wolfSSL on WSL.
Installing WSL and Ubuntu 18.04:
- Open PowerShell as Administrator (right-click and choose “Run as Administrator”)
- Run the following commands:
- Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
- Invoke-WebRequest -Uri https://aka.ms/wsl-ubuntu-1804 -OutFile Ubuntu.appx -UseBasicParsing
- Add-AppxPackage .\Ubuntu.appx
- Start -> Ubuntu 18.04 (should be at the top of the start menu)
- Installing, this may take a few minutes…
- Choose username and password
- Update Ubuntu:
- sudo apt update
- sudo apt upgrade
Building wolfSSL:
- Install prerequisites
- sudo apt-get install autoconf libtool make execstack
- git clone https://github.com/wolfSSL/wolfssl.git
- cd wolfssl
- ./autogen.sh
- ./configure
- make
- make check
Enabling Intel Speedups and Running Benchmarks:
- ./configure –enable-intelasm –enable-aesni –enable-sp –enable-sp-asm
- make
- WSL does not currently have support for the PROT_GROWSDOWN flag. Manually clear the executable stack flag in the library:
- execstack -c ./src/.libs/libwolfssl.so
- ./wolfcrypt/benchmark/benchmark
If you have any questions or run into any issues, contact us at facts@wolfssl.com, or call us at +1 425 245 8247.
wolfTPM support for Xilinx Zynq and VxWorks
The wolfTPM library has now been tested on the Xilinx Zynq UltraScale with VxWorks.
Testing was done using a Xilinx Zynq Pmod board with Infineon SLB9670 TPM 2.0 module.
The TPM 2.0 module can be used for measured boot functionality and cryptographic security to extend the hardware root of trust enabled by Zynq and Zynq UltraScale+ devices.
The wolfTPM library and TPM 2.0 module can be accessed from VxWorks kernel mode and user space.
More information on the Zynq Pmod module can be found here:
http://www.zedboard.org/product/trusted-platform-module-security-pmod
If you have any questions or run into any issues, contact us at facts@wolfssl.com, or call us at +1 425 245 8247.
Vulnerability Disclosure: TLSv1.3 PSK extension parsing potential buffer overflow
Affected Users:
User of wolfSSL v4.0.0 are affected.
Summary of issue:
wolfSSL 4.0.0 has a Buffer Overflow in DoPreSharedKeys in tls13.c when a current identity size is greater than a client identity size. The identity data field of the PSK extension of the packet contains data beyond the buffer length to be stored in the undefined memory (RAM) of the server. The size of the data is about 65 kB. Attackers could write about 65 kB of data to the RAM space on affected servers.
Recommendation:
Users should upgrade to wolfSSL v4.1.0
Research:
https://nvd.nist.gov/vuln/detail/CVE-2019-11873
Additional details:
Patch for this vulnerability can be viewed here: https://github.com/wolfSSL/wolfssl/pull/2239
If you have any questions or run into any issues, contact us at facts@wolfssl.com, or call us at +1 425 245 8247.
Related Items:
https://www.wolfssl.com/everything-wanted-know-wolfssl-support-handles-vulnerability-reports-afraid-ask/
https://www.wolfssl.com/docs/security-vulnerabilities/
https://github.com/wolfSSL/wolfssl/pull/2353
Vulnerability Disclosure: ECDSA signing operations and nonce size leaks
Settings that mitigate this vulnerability in affected versions (secp256r1 only, all other curves are affected):
- –enable-sp
- –enable-sp-asm
- –enable-fpecc
Affected Users:
Users with long-term private ECC ECDSA keys performing ECDSA sign operations with the USE_FAST_MATH setting (–enable-fastmath).
Users who have disabled the default enabled timing resistance while also using fastmath (–disable-harden) or using normal math (–disable-fastmath) will continue to be susceptible to timing attacks including this vulnerability.
Summary:
There is a potential leak of nonce sizes when performing ECDSA signing operations. The leak is considered to be difficult to exploit but it could potentially be used to recover private ECC keys in wolfSSL versions prior to release 4.1.0.
Recommendation:
Users with long-term private ECC ECDSA keys, performing ECDSA signing operations with the fastmath library should:
- update to wolfSSL version 4.1.0
- replace any long-term private ECC ECDSA keys.
- Not disable timing resistance
Research:
The research for this vulnerability is not yet publicly available, a public disclosure containing more details is currently scheduled for September 2nd 2019. CVE-2019-13628 has been reserved for when the public disclosure is made available.
Additional details:
More available upon public disclosure of research. The patch fixing this issue can be viewed at this link: https://github.com/wolfSSL/wolfssl/pull/2353/files
If you have any questions or run into any issues, contact us at facts@wolfssl.com, or call us at +1 425 245 8247.
Related Items:
https://www.wolfssl.com/everything-wanted-know-wolfssl-support-handles-vulnerability-reports-afraid-ask/
https://www.wolfssl.com/docs/security-vulnerabilities/
https://github.com/wolfSSL/wolfssl/pull/2353
wolfSSL 4.1.0 Now Available
wolfSSL is excited to announce its summer release of the wolfSSL embedded SSL/TLS library version 4.1.0! As with each release, wolfSSL 4.1.0 comes with many feature additions, bug fixes, and improvements to the wolfSSL library.
The list below outlines some of the new features and notable fixes added for version 4.1.0:
- Fixes and updates for TLS 1.3:
- Added additional sanity checks and alert messages for TLS 1.3
- Major version TLS Draft is now ignored and an alert is sent if version negotiation occurs but no versions were matched
- Added WOLFSSL_PSK_ONE_ID macro for indicating that only one identity in TLS 1.3 PSK is available and will be cached
- Added XTIME_MS macro to simplify the tls13.c time requirement
- Improved and refactored code related to parsing and creating TLS 1.3 client hello packets
- TLS 1.3 version renegotiation now happens before interpreting ClientHello message
- Fixes and additions for PCKS7:
- Added a fix for a check on the return value when verifying PKCS7 bundle signatures (users with applications using the function wc_PKCS7_VerifySignedData should update)
- Added the function wc_PKCS7_GetSignerSID for PKCS7 firmware bundles
- Added PKCS7 callback functions for unwrapping of CEK and for decryption
- Increased performance on ARM architecture:
- Optimizations for Poly1305 and SHA-512/384 on ARM architecture using SIMD NEON extension
- Optimizations for ChaCha20, Curve25519 and Ed 25519 on ARM architecture for performance increase
- Added Sniffer updates:
- Added support for the null cipher and static ECDH key exchange and new SSLWatchCb callback
- Added cipher suite TLS_RSA_WITH_NULL_MD5 (off by default)
- Sniffer statistics print out with the macro WOLFSSL_SNIFFER_STATS defined
- Fixes, updates, and new functions added for OpenSSL Extra
- Added the build flag –enable-ecccustcurves=all to enable all curve types
- Added Java Secure Sockets Extension (JSSE) support
- Added additional TLS alert messages sent with the macro WOLFSSL_EXTRA_ALERTS defined
- Added CryptoCell-310 support on nRF52840
- Added SiFive HiFive E31 RISC?V core family port
- Added Telit IoT AppZone SDK port
- Added the build flag –enable-blake2s for 32-bit Blake2s support
- Added support for Ed25519ctx and Ed25519ph sign/verify algorithms as per RFC 8032
Stay tuned for more information regarding notable features and updates included with the wolfSSL 4.1.0 release. The following lists other various fixes and improvements that have been included with wolfSSL 4.1.0:
- Compile time fixes for build case with SP math and RSA only
- Fixes for Coverity static analysis report including explicit initialization of reported stack variables, as well as additional Coverity fixes thanks to Martin
- Fixes for scan build warnings (i.e possible null dereference in ecc.c)
- Resetting verify send value with a call to wolfSSL_clear function
- Fix for extern with sp_ModExp_2048 when building with –cpp option
- Fix for typo issue with –enable-sp=cortexm
- Adding #pragma warning disable 4127 for tfm.c when building with Visual Studio
- Improvements to the maximum ECC signature calculations
- Improvements to TLS write handling in error cases which helps user application not go through with a wolfSSL_write attempt after a wolfSSL_read failure
- Fix for read directory functions with Windows (wc_ReadDirFirst and wc_ReadDirNext)
- Sanity check on index before accessing domain component buffer in call to wolfSSL_X509_NAME_get_entry
- Sending fatal alert from client side on version error
- Fix for static RSA cipher suite with PK callback and no loaded private key
- Fix for potential memory leak in error case with the function wc_DsaKeyToDer, thanks to Chris H. for the report
- Adjusting STRING_USER macro to remove includes of standard lib <string.h> or <stdio.h>
- Bug fix for checking wrong allocation assignment in the function wc_PBKDF2 and handling potential leak on allocation failure. This case is only hit when the specific call to malloc fails in the function wc_PBKDF2. Thanks to Robert Altnoeder (Linbit) for the report
- Improved length checks when parsing ASN.1 certificates
- Improved checking of return values with TLS extension functions and error codes
- Removing redundant calls to the generate function when instantiating and reseeding DRBG
- Improvements for handling error return codes when reading input from transport layer
- Improvements to efficiency of SNI extension parsing and error checking with ALPN parsing
This release of wolfSSL also includes a fix for 2 security vulnerabilities. A full detailed list of additions and bug fixes can be found in the wolfSSL README.
To download and view the most recent version of wolfSSL, the wolfSSL GitHub repository can be cloned from here: https://github.com/wolfssl/wolfssl.git, and the most recent stable release can be downloaded from the wolfSSL download page here: https://www.wolfssl.com/download/.
If you have any questions or run into any issues, contact us at facts@wolfssl.com, or call us at +1 425 245 8247.
Weekly updates
Archives
- November 2024 (26)
- October 2024 (18)
- September 2024 (21)
- August 2024 (24)
- July 2024 (27)
- June 2024 (22)
- May 2024 (28)
- April 2024 (29)
- March 2024 (21)
- February 2024 (18)
- January 2024 (21)
- December 2023 (20)
- November 2023 (20)
- October 2023 (23)
- September 2023 (17)
- August 2023 (25)
- July 2023 (39)
- June 2023 (13)
- May 2023 (11)
- April 2023 (6)
- March 2023 (23)
- February 2023 (7)
- January 2023 (7)
- December 2022 (15)
- November 2022 (11)
- October 2022 (8)
- September 2022 (7)
- August 2022 (12)
- July 2022 (7)
- June 2022 (14)
- May 2022 (10)
- April 2022 (11)
- March 2022 (12)
- February 2022 (22)
- January 2022 (12)
- December 2021 (13)
- November 2021 (27)
- October 2021 (11)
- September 2021 (14)
- August 2021 (10)
- July 2021 (16)
- June 2021 (13)
- May 2021 (9)
- April 2021 (13)
- March 2021 (24)
- February 2021 (22)
- January 2021 (18)
- December 2020 (19)
- November 2020 (11)
- October 2020 (3)
- September 2020 (20)
- August 2020 (11)
- July 2020 (7)
- June 2020 (14)
- May 2020 (13)
- April 2020 (14)
- March 2020 (4)
- February 2020 (21)
- January 2020 (18)
- December 2019 (7)
- November 2019 (16)
- October 2019 (14)
- September 2019 (18)
- August 2019 (16)
- July 2019 (8)
- June 2019 (9)
- May 2019 (28)
- April 2019 (27)
- March 2019 (15)
- February 2019 (10)
- January 2019 (16)
- December 2018 (24)
- November 2018 (9)
- October 2018 (15)
- September 2018 (15)
- August 2018 (5)
- July 2018 (15)
- June 2018 (29)
- May 2018 (12)
- April 2018 (6)
- March 2018 (18)
- February 2018 (6)
- January 2018 (11)
- December 2017 (5)
- November 2017 (12)
- October 2017 (5)
- September 2017 (7)
- August 2017 (6)
- July 2017 (11)
- June 2017 (7)
- May 2017 (9)
- April 2017 (5)
- March 2017 (6)
- January 2017 (8)
- December 2016 (2)
- November 2016 (1)
- October 2016 (15)
- September 2016 (6)
- August 2016 (5)
- July 2016 (4)
- June 2016 (9)
- May 2016 (4)
- April 2016 (4)
- March 2016 (4)
- February 2016 (9)
- January 2016 (6)
- December 2015 (4)
- November 2015 (6)
- October 2015 (5)
- September 2015 (5)
- August 2015 (8)
- July 2015 (7)
- June 2015 (9)
- May 2015 (1)
- April 2015 (4)
- March 2015 (12)
- January 2015 (4)
- December 2014 (6)
- November 2014 (3)
- October 2014 (1)
- September 2014 (11)
- August 2014 (5)
- July 2014 (9)
- June 2014 (10)
- May 2014 (5)
- April 2014 (9)
- February 2014 (3)
- January 2014 (5)
- December 2013 (7)
- November 2013 (4)
- October 2013 (7)
- September 2013 (3)
- August 2013 (9)
- July 2013 (7)
- June 2013 (4)
- May 2013 (7)
- April 2013 (4)
- March 2013 (2)
- February 2013 (3)
- January 2013 (8)
- December 2012 (12)
- November 2012 (5)
- October 2012 (7)
- September 2012 (3)
- August 2012 (6)
- July 2012 (4)
- June 2012 (3)
- May 2012 (4)
- April 2012 (6)
- March 2012 (2)
- February 2012 (5)
- January 2012 (7)
- December 2011 (5)
- November 2011 (7)
- October 2011 (5)
- September 2011 (6)
- August 2011 (5)
- July 2011 (2)
- June 2011 (7)
- May 2011 (11)
- April 2011 (4)
- March 2011 (12)
- February 2011 (7)
- January 2011 (11)
- December 2010 (17)
- November 2010 (12)
- October 2010 (11)
- September 2010 (9)
- August 2010 (20)
- July 2010 (12)
- June 2010 (7)
- May 2010 (1)
- January 2010 (2)
- November 2009 (2)
- October 2009 (1)
- September 2009 (1)
- May 2009 (1)
- February 2009 (1)
- January 2009 (1)
- December 2008 (1)