Commit Graph

1299 Commits (1c61ff6c826bfcf8e1094817b44735720ecff160)

Author SHA1 Message Date
Eric Blankenhorn 1c61ff6c82
Merge pull request #440 from dgarske/rel_v3.10.0
Release v3.10.0 prep
2025-12-04 16:29:41 -06:00
David Garske ae7f4b13d7 Release v3.10.0 prep. Change swtpm port to use number. 2025-12-04 13:49:10 -08:00
Eric Blankenhorn 5ccf623fb4
Merge pull request #441 from dgarske/coverity_20251203
Various minor coverity fixes
2025-12-04 12:48:35 -06:00
David Garske d46515538e Fix the `TPM2_TIS_Write` correctly 2025-12-04 10:25:28 -08:00
David Garske 5a70253d03 A few more minor Coverity fixes. 2025-12-03 15:54:21 -08:00
David Garske bfbbd2e00e
Merge pull request #368 from gojimmypi/espressif-spi
Add Espressif SPI support
2025-12-03 12:49:34 -08:00
David Garske 27d1a22144 Various minor coverity fixes 2025-12-03 12:47:21 -08:00
gojimmypi 1e785d4dba
Spelling 2025-12-03 12:26:39 -08:00
gojimmypi 7463e9cb57
Revert line endings 2025-12-03 12:22:42 -08:00
gojimmypi e94bc78685
Espressif frame size adjustments, cleanup 2025-12-03 12:17:20 -08:00
gojimmypi a44382c4f3
SPI Stack Adjustment 2025-12-03 09:28:28 -08:00
gojimmypi e7a0eee19d
Add Espressif SPI support 2025-12-03 09:02:38 -08:00
Eric Blankenhorn 0a3b8deb56 Merge pull request #439 from dgarske/zd20841
Fix for `wolfTPM2_SetKeyAuthPassword` that was truncating password to 2 bytes
2025-12-01 15:55:24 -06:00
David Garske 5b3eade0f5 Fix for `wolfTPM2_SetKeyAuthPassword` that was truncating password to 2 chars. Added test to catch this and made sure there are no others. Bug introduced in PR #427 and release v3.9.2. 2025-12-01 13:23:35 -08:00
lealem47 6d5df60e24
Merge pull request #438 from dgarske/cmake_tpm_modules
CMake improvements (add TPM module choice) - sync to configure
2025-11-21 15:39:21 -07:00
David Garske a88d7ba6e0 Add note about ifx_fw_update tool requirements 2025-11-21 14:32:44 -08:00
David Garske d936b8f551 Fix for cast warning. Fix for WOLFTPM_DEBUG to show verbose/io also. 2025-11-21 14:02:51 -08:00
David Garske 545c6b3df1 Fix for RSA private key import with PKCS8 header 2025-11-21 13:53:17 -08:00
David Garske 3120dac297 Add new `make cppcheck` option. Fixes for cppcheck. Added missing `wolfssl-v4.7.0.patch` 2025-11-21 13:26:47 -08:00
David Garske 48eca3cd87 Fix issue with possible use of uninitialized in `rc` in `TPM2_GetNonceNoLock`. Attempt to fix build for old v4.7.0 wolfssl. 2025-11-21 12:15:04 -08:00
David Garske b042e4da67 Fixes for build and testing with `--enable-infineon=9670`. Additional build tests. 2025-11-21 19:57:58 +00:00
David Garske 9e29f5280e Fix for old wolfssl test 2025-11-21 11:22:22 -08:00
David Garske 7f37399aea Support for swtpm port arguments 2025-11-20 15:51:05 -08:00
David Garske a2ee75cd53 Further improvement to CMake interfaces and test scripts 2025-11-20 14:30:00 -08:00
David Garske 535293df47 Split up the make tests into matrix (improve test time) 2025-11-20 13:58:16 -08:00
David Garske 5217ca54ff Finishing up the CMake options to sync with configure 2025-11-20 13:30:47 -08:00
David Garske 266d86c5d2 Add CMake support for choosing a TPM module 2025-11-20 19:22:07 +00:00
David Garske 4a5c75585b
Merge pull request #437 from LinuxJedi/zp-fixes
Fix things found using ZeroPath
2025-10-22 06:44:38 -07:00
Andrew Hutchings 4f6282b9e7 Validate GetProductInfo payload length
Reject undersized SWTPM responses before copying product info to avoid signed underflow and out-of-bounds access.
2025-10-21 16:11:24 +01:00
Andrew Hutchings ae73063942 Enforce TPM response HMAC length checks
Reject zero-length or mismatched response HMACs for authenticated sessions so forged SWTPM replies fail verification.
2025-10-21 15:57:23 +01:00
David Garske de4f085e4e
Merge pull request #435 from danielinux/linuxdev-persistent-fd
Persistent access to /dev/tpmrmX
2025-10-09 10:23:06 -07:00
Daniele Lacamera 9dd6c1f992 Closing file descriptor on cleanup 2025-10-09 18:11:11 +02:00
Daniele Lacamera 207379be42 Draft: persistent access to /dev/tpmrmX
Across multiple TPM transfers, do not close-reopen TPM device
2025-09-22 09:33:21 +02:00
Eric Blankenhorn 7e7046dad7
Merge pull request #434 from dgarske/linux_tpm
Fix TPM Linux read() return code handling
2025-09-03 15:14:05 -05:00
David Garske cbc99ba1c5 Fix TPM Linux read() return code handling. When using the /dev/tpmrm0 (resource manager) its possible for the read to fail or return would block. This fixes the return code on failures. 2025-08-29 12:36:22 -07:00
Andrew Hutchings 02c9e8bccc
Merge pull request #433 from dgarske/cryptocb_hashtype
Fix for crypto callback unavailable and ECDSA hash type
2025-08-26 17:24:45 +01:00
David Garske 29dcfa763f Spelling 2025-08-26 08:56:47 -07:00
David Garske 81a5d7eba3 Revert changes to `WOLFTPM2_USE_SW_ECDHE` 2025-08-26 08:48:01 -07:00
David Garske 4050983c07 Fix for crypto callback to return CRYPTOCB_UNAVAILABLE when a TPM key is not set. Fix to use curve type to determine hash type not digest size. 2025-08-26 08:03:03 -07:00
Eric Blankenhorn bce6cf708b
Merge pull request #432 from dgarske/tls_shutdown
Fix for TPM2_VerifySignature not using the correct hash algorithm
2025-08-25 16:59:10 -05:00
David Garske 36303303d3 Fix spelling 2025-08-25 14:38:26 -07:00
David Garske 5604e3d23d Add test case 2025-08-25 09:46:43 -07:00
David Garske 1d1a0bd819 Fix for TPM2_VerifySignature not using the correct hash algorithm (ZD 20296) 2025-08-25 09:34:23 -07:00
Eric Blankenhorn 394913880f
Merge pull request #431 from dgarske/tls_shutdown
Improve the TLS bi-directional shutdown
2025-08-15 13:29:56 -05:00
David Garske 877a43d6ff Fix for missing `WC_PK_TYPE_RSA_GET_SIZE` in older releases 2025-08-15 00:04:11 +01:00
David Garske bf1d5c7bca Improve the TLS bidirectional shutdown 2025-08-14 23:58:42 +01:00
David Garske cb1e647c27
Merge pull request #430 from night1rider/cmake-options-fix-wolftpm_no_lock
Updating default logic for WOLFTPM_NO_LOCK depending on state of WOLFTPM_SINGLE_THREADED
2025-08-13 15:21:47 -07:00
night1rider f68e28b232 Fix backward yes/no logic of WOLFTPM_NO_LOCK_DEFAULT, and if check statement of WOLFTPM_NO_LOCK 2025-08-13 16:00:09 -06:00
night1rider 807ad9bbcf Updating default logic for WOLFTPM_NO_LOCK depending on state of WOLFTPM_SINGLE_THREADED 2025-08-13 15:25:44 -06:00
Eric Blankenhorn 75938ca2b0
Merge pull request #429 from dgarske/rel_v3.9.2
wolfTPM Rel v3.9.2
2025-08-01 16:29:23 -05:00