Skip to content

Commit

Permalink
wolfTPM v3.1 release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Dec 26, 2023
1 parent 7c079dd commit 413c27b
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

cmake_minimum_required(VERSION 3.16)

project(wolfTPM VERSION 3.0.0 LANGUAGES C)
project(wolfTPM VERSION 3.1.0 LANGUAGES C)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(WOLFTPM_DEFINITIONS)
Expand Down
45 changes: 45 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# Release Notes

## wolfTPM Release 3.1.0 (Dec 26, 2023)

**Summary**

Support for using TLS PK callbacks with TPM for ECC and RSA. Improved the crypto callback support and added RSA Key generation. Added Windows Visual Studio solution and project for wolfTPM.

**Detail**

* Removed use of `error-ssl.h` in library proper. (PR #308)
* Fixed CSR crypto callback to use a different (not default) `devId` to avoid conflict. (PR #310)
* Added TPM crypto callback support for RSA key generation (PR #311)
* Fixed and improved for ECC crypto callbacks (PR #311)
- Allow import of wolf ECC marked as private only (`ECC_PRIVATEKEY_ONLY`).
- Improve the ECC key import scheme for signing.
- Improve logic for finding TPM curve in ECC key generation. A call to wc_ecc_make_key can use curve_id 0 (to detect), but we can get it from the "dp".
- Properly translate a TPM ECC signature verify error for compatibility.
- Support ECC KeyGen for signing or derive based on callback context `eccKey` or `ecdhKey` population.
- Fix to make sure leading ECC sign leading zeros are removed when not required.
- Fix leading zero issue on ECC verify.
* Cleanup KDF function return code checking to avoid scan-build warning. (PR #311)
* Fixed ECC encrypt secret integrity check failed due to zero pad issue. (PR #311)
* Fixed `wolfTPM2_GetRng` possibly not returning an initialized WC_RNG. (PR #311)
* Fixed TLS bidirectional shutdown socket issue to to port collision with SWTPM. (PR #311)
* Fixed `policy_sign` issue when `r` or `s` is less than key size (needs zero padding). (PR #311)
* Fixed building wolfCrypt without PEM to DER support. (PR #311)
* Added support for TLS PK callbacks with ECC and RSA Sign using PKCSv1.5 and PSS padding (PR #312)
- Fixed building wolfTPM without crypto callbacks.
- Fixed building/running with FIPS.
- Cleanup TLS PK callback RSA PSS padding.
- Cleanup TLS server/client.
- Added server `-i` option to keep running unless failure.
- Added TLS server option `-self` to use the self signed certs.
- Added tests for the TLS PK with TPM.
* Added `CMakeList.txt` to autoconf, so its in the "make dist" commercial bundles. (PR #313)
* Fixed HAL IO prototype to match (`TPM2HalIoCb` and `TPM2_IoCb`) and cast warnings. (PR #313)
* Added support for getting the keyblob sizes if buffer is NULL. (PR #315)
* Added tests for keyblob buffer export/import. (PR #315)
* Added Windows Visual Studio project for wolfTPM. Added GitHub Actions to test it. (PR #316)
* Added support for overriding the PORT/PIN for the STM32 Cube HAL. (PR #314)
* Fixed ECC sign with key that is marked for sign and decrypt detect the ECDSA hash algorithm. (PR #317)
* Fixes for compiler type warnings. (PR #318)
* Added `WOLFTPM_NO_LOCK`. (PR #318)
* Improved STM IO options/logging. (PR #318)


## wolfTPM Release 3.0.0 (Oct 31, 2023)

**Summary**
Expand Down
4 changes: 2 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# All right reserved.

AC_COPYRIGHT([Copyright (C) 2014-2021 wolfSSL Inc.])
AC_INIT([wolftpm],[3.0.0],[https://github.com/wolfssl/wolfTPM/issues],[wolftpm],[http://www.wolfssl.com])
AC_INIT([wolftpm],[3.1.0],[https://github.com/wolfssl/wolfTPM/issues],[wolftpm],[http://www.wolfssl.com])

AC_PREREQ([2.63])
AC_CONFIG_AUX_DIR([build-aux])
Expand All @@ -28,7 +28,7 @@ AC_ARG_PROGRAM

AC_CONFIG_HEADERS([src/config.h])

WOLFTPM_LIBRARY_VERSION=16:0:0
WOLFTPM_LIBRARY_VERSION=16:1:0
# | | |
# +------+ | +---+
# | | |
Expand Down
4 changes: 2 additions & 2 deletions wolftpm/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
extern "C" {
#endif

#define LIBWOLFTPM_VERSION_STRING "3.0.0"
#define LIBWOLFTPM_VERSION_HEX 0x03000000
#define LIBWOLFTPM_VERSION_STRING "3.1.0"
#define LIBWOLFTPM_VERSION_HEX 0x03001000

#ifdef __cplusplus
}
Expand Down

0 comments on commit 413c27b

Please sign in to comment.