Commit Graph

1207 Commits (a45f922c6dece3b5d39312cde8738053fa32f665)

Author SHA1 Message Date
David Garske a45f922c6d Fix for older TPM's that don't support ECC384/SHA384. 2025-06-02 08:11:09 -07:00
David Garske f1507c697b Minor cleanups. Fixed `test_TPM2_PCRSel` test. 2025-06-02 08:11:09 -07:00
David Garske 592210f321 Expose `TPM2_ASN_TrimZeros`. 2025-06-02 08:11:08 -07:00
David Garske 3e3038854c Improve input digest size logic for TPM2_Sign and TPM2_Verify. Added test case with interop. 2025-06-02 08:11:08 -07:00
David Garske 32332fd2bb Fix logic for signing with input digest smaller than key size. ZD 19869 2025-06-02 08:11:08 -07:00
Eric Blankenhorn 761cb4adea
Merge pull request #417 from dgarske/tpm_threadls
Improve active TPM thread mutex and possible mutex recursion
2025-05-29 11:18:22 -05:00
David Garske c364166542 Fix for missing `TPM2_ReleaseLock` in `TPM2_GetProductInfo`. 2025-05-28 16:04:51 -07:00
David Garske 7411bc115f Refactor the TPM2_GetNonce to support a non-locking version for internal use. This avoids all possible recursive mutex calls. 2025-05-27 14:42:43 -07:00
David Garske 4214ffa8a5 Improvements to CMake support for single threading, mutex locking and active thread local storage. 2025-05-27 12:36:57 -07:00
David Garske cbb7c2969b Improve gActiveTPM detection for needing thread local. 2025-05-27 12:24:57 -07:00
JacobBarthelmeh 57706751ab
Merge pull request #415 from dgarske/rel_v3.9.1_prep
wolfTPM v3.9.1 release (post release fixes)
2025-05-21 11:50:08 -06:00
David Garske 86fbaf69a9 wolfTPM v3.9.1 release (post release fixes)
- Fixed commercial release bundle (missing `tpm2_asn.h`).
  - Fixed wolfTPM DLL revision (was not updated in v3.9.0).
  - Added `make distcheck` to GitHub CI.
2025-05-21 10:34:52 -07:00
Eric Blankenhorn a19ac0d19c
Merge pull request #414 from dgarske/rel_v3.9.0_prep
wolfTPM Release v3.9.0
2025-05-15 10:54:31 -05:00
David Garske 32f0ef5107 Static analysis cleanups from scan-build. 2025-05-14 16:14:50 -07:00
David Garske 6fbb49a94f wolfTPM Release v3.9.0. Updated copyright and version. 2025-05-14 15:31:07 -07:00
David Garske 91ad74064e
Merge pull request #395 from aidangarske/tpm_zephyr_support
wolfTPM Zephyr Project Port
2025-05-14 14:08:20 -07:00
Aidan Garske 8b8bd479a4 wolfTPM Zephyr Project Port #395 - Work by @aidangarske, @night1rider, and @dgarske 2025-05-14 13:56:08 -07:00
Zackery 33a5f47eaf
Merge pull request #398 from aidangarske/uboot_support
wolfTPM Support For Das U-Boot Bootloader
2025-05-06 18:17:56 -06:00
David Garske 985abb5eae Updated docs. Add test case for `TPM2_GetAlgId`. 2025-05-06 16:52:28 -07:00
David Garske 9c2ada8a7a Fixes for spelling and debug. 2025-05-06 16:41:34 -07:00
David Garske 0c2b0a43ed Fix location for TPM simulator `/tmp`. 2025-05-06 16:29:38 -07:00
Eric Blankenhorn 3bbed48ec9
Merge pull request #410 from dgarske/tpm_mutex
Improve mutex locking protection for concurrent thread usage
2025-05-05 15:14:02 -05:00
Eric Blankenhorn 91ea3684b5
Merge pull request #412 from dgarske/bench_cleanup
Fix issue with possible handle leak in bench example
2025-05-05 15:13:58 -05:00
David Garske 5a5a7e2d25 Fix issue with possible handle leak in bench example. Reported in #411. 2025-05-02 15:31:06 -07:00
David Garske f2e6be4e16 Add build option `WOLFTPM_NO_ACTIVE_THREAD_LS` to remove thread local on `gActiveTPM`. 2025-05-02 12:53:48 -07:00
David Garske e7aad1ac22 Support for pthread static mutex when building against older wolfSSL versions (like 5.6.6). 2025-05-02 12:48:24 -07:00
Aidan Garske d463f70975 Removed options.h not used, added TPM2_GetHierarchyDesc, and fixed indentation error 2025-04-30 11:22:13 -07:00
David Garske ac800d3820 Fix no `WOLFSSL_MUTEX_INITIALIZER` case. 2025-04-29 22:10:00 -07:00
David Garske d27306b1c9 Improve mutex locking protection for concurrent thread usage. Use a global mutex instead of one that is part of TPM2_CTX. ZD 19771 2025-04-28 23:09:15 -07:00
Aidan Garske f31929609f Rebase wolfTPM Support For Das U-Boot Bootloader 2025-04-25 13:28:09 -07:00
David Garske 0cd21b53c4
Merge pull request #409 from aidangarske/keygen_opKeyAuth
Keygen Optional Authentication Password -auth=<yourpassword>
2025-03-28 14:45:35 -07:00
aidan garske 8e03c40fba removed test, only needs to be tested when actually used in wolfTPM 2025-03-28 14:31:00 -07:00
aidan garske 688ce722d3 Fix typo - default is used.. 2025-03-28 13:57:21 -07:00
aidan garske f10a27bb47 Add keygen test for AIK and defualt 2025-03-28 13:29:43 -07:00
aidan garske 942bbe7f03 removed testing 2025-03-28 13:22:52 -07:00
aidan garske 50c5f10277 Added keygen optional authentication password -auth=<yourpassword> 2025-03-28 12:50:22 -07:00
David Garske 122885adc9
Merge pull request #408 from tmael/asn_parse
correct ASN.1 cert parsing
2025-03-27 15:01:35 -07:00
Tesfa Mael fbcca8d1ba correct ASN.1 cert parsing 2025-03-27 12:31:27 -07:00
Eric Blankenhorn c99619df16
Merge pull request #407 from dgarske/fixes-20250306
Various: Cleanup for public area copy and added cmake provisioning option
2025-03-19 13:10:52 -05:00
David Garske fe5b575039
Merge pull request #406 from night1rider/SelfSigned_Bug
Self Signed CA always set to version 1
2025-03-06 16:02:45 -08:00
night1rider 250fa3923f Revert setting version in CSR Init, and Version Change to MakeAndSign_ex 2025-03-06 16:49:13 -07:00
David Garske a83f2f89d4 Cleanup to replace memcpy with public area copy function. Add CMake provisioning option (`WOLFTPM_PROVISIONING`) to match configure. 2025-03-06 13:55:14 -08:00
msi-debian 69aaa20b1a Initial Fix 2025-03-06 12:29:13 -07:00
David Garske a6e54ccf93
Merge pull request #404 from tmael/asn
Refactor ASN.1 parsing for RSA cert
2025-03-06 10:30:49 -08:00
Tesfa Mael 7400f0f369 Review comment 2025-03-05 11:52:53 -08:00
Tesfa Mael ceb2c224d6 Update CMakeLists and move WOLFTPM2_NO_ASN down 2025-03-04 18:55:41 -08:00
Tesfa Mael bb5eeb8976 Add WOLFTPM2_NO_ASN and move doc to a header file 2025-03-04 14:09:46 -08:00
Tesfa Mael 63385223ca Refactor ASN.1 parsing for RSA cert 2025-03-03 11:31:43 -08:00
tmael 0a463b3254
Merge pull request #401 from dgarske/cleanups
Various cleanups to tests and documentation
2025-02-26 15:06:41 -08:00
David Garske fc6beabd1a Fix issue with `wolfTPM2_Init_ex` handling of TPM2_Startup TPM_RC_INITIALIZE. 2025-02-25 16:48:47 -08:00