Commit Graph

1151 Commits (bcf2647ebcf76e76a75cefc46f7187d213eb1fcd)

Author SHA1 Message Date
Daniel Pouzzner bcf2647ebc
Merge pull request #393 from dgarske/rel_v3.8.0_prep
wolfTPM Release v3.8.0 prep
2025-01-07 15:26:26 -06:00
David Garske 2069ed7976 Fixes for scan-build and g++ warnings. 2025-01-07 10:47:26 -08:00
David Garske 5bd553a6a3 wolfTPM v3.8.0 release. 2025-01-06 11:46:49 -08:00
David Garske 272eb68340 Update CMake examples. 2025-01-06 11:45:35 -08:00
David Garske 703b7285fb
Merge pull request #340 from philljj/iocb_microchipharmony_i2c
Iocb microchipharmony i2c
2025-01-06 11:44:51 -08:00
jordan a2fede312f microchip iocb: spelling cleanup. 2025-01-06 13:36:51 -05:00
jordan eb079ee22a Implementation for TPM2_IoCb_MicrochipHarmony_I2C. 2025-01-06 12:29:57 -05:00
David Garske 6e1205b1e1 Fix for possible missing `wc_GetPkcs8TraditionalOffset`. 2025-01-03 00:16:49 +01:00
David Garske 409ec70e0e Improve TPM NV write debug logging (show before). 2025-01-03 00:16:49 +01:00
David Garske 6de582c38a Fix spelling and update list of supported TPM's. 2025-01-03 00:16:49 +01:00
Eric Blankenhorn 80da56728c
Merge pull request #389 from dgarske/nv_extend
Fix issue with session binding / add NV extend example
2024-12-17 17:00:58 -06:00
Eric Blankenhorn cb645d3a21
Merge pull request #390 from dgarske/oldcrypt
Support for building wolfTPM against older wolfCrypt (like v4.7.0)
2024-12-17 17:00:50 -06:00
Eric Blankenhorn 415f714c66
Merge pull request #391 from dgarske/tpmclear
Create separate tool for performing the TPM2_Clear
2024-12-17 17:00:42 -06:00
David Garske 15add23dcf Add code for calculating NV extend policies. Fixed issue with `wolfTPM2_PolicyHash` where input digest could be too large. 2024-12-17 11:30:47 -08:00
David Garske 671b702786 Allow extend with RSA or ECC. 2024-12-16 14:17:15 -08:00
David Garske 580b3a779e Fix issue with session binding. Add example for NV extend based on the TCG "bus protection guidance". 2024-12-16 11:53:52 -08:00
David Garske 8177ba8c1d Create separate tool for performing the TPM2_Clear (don't use args to wrap_test). 2024-12-13 14:52:38 -08:00
David Garske 88f57f373e Fix CI 2024-12-13 13:59:15 -08:00
David Garske e4ea0950e0 Fix CI for old wolfSSL. 2024-12-13 10:03:38 -08:00
David Garske 7c48b76548 Support for building wolfTPM against older wolfCrypt (like v4.7.0). 2024-12-13 09:45:52 -08:00
JacobBarthelmeh d0618adaf3
Merge pull request #388 from dgarske/various_20241206
Various cleanups
2024-12-09 10:58:45 -07:00
David Garske 87edf3d840 Cleanup the `SensitiveToPrivate` function stack variables. Switch `wolfTPM2_LoadSymmetricKey` to default to the `WOLFTPM2_WRAP_DIGEST` for hash algorithm and not try to use SHA1. Cleanup comments on EK/SRK. Tab and formatting. 2024-12-06 16:56:03 -08:00
David Garske 4540ed9c92
Merge pull request #387 from night1rider/PKCS7_Example_Fix
Fixing PKCS7 Type delclaration in example
2024-11-18 09:35:17 -08:00
msi-debian 599998d827 Fixing PKCS7 Type delclaration 2024-11-18 10:18:05 -07:00
JacobBarthelmeh 431046ebf4
Merge pull request #386 from dgarske/exe_bit
Remove execute bit on code/header files
2024-11-12 09:04:18 -07:00
David Garske 6cb101da14 Remove execute bit on code/header files. 2024-11-11 06:59:10 -08:00
JacobBarthelmeh 251ec1188e
Merge pull request #385 from dgarske/rel_v3.6.0
wolfTPM Release v3.6.0
2024-11-05 13:42:22 -07:00
David Garske 3617abca97 Fix warning: `cannot convert argument of incomplete type 'void *' to 'WOLFTPM2_KEY *'`. Fix `extend.c:158:9: warning: Value stored to 'rc' is never read`. Fix `src/tpm2_wrap.c:2193:5: warning: Value stored to 'sensSz' is never read`. 2024-11-05 11:34:54 -08:00
David Garske d986ec73ba wolfTPM Release v3.6.0 prep. 2024-11-05 11:18:43 -08:00
JacobBarthelmeh 7a6deaa86d
Merge pull request #383 from dgarske/get_caps
Add support for TPM2_GetCapability for TPM_CAP_PCRS.
2024-10-31 15:38:40 -06:00
Aidan Garske b62a0fdc4e
Merge pull request #384 from dgarske/wchashtype
Helper to get wolfCrypt hash type
2024-10-31 09:52:41 -07:00
David Garske 180a74e8c3 Added cap parsing limit checks. Added missing `TPM_CAP_PCR_PROPERTIES`. 2024-10-31 08:11:53 -07:00
David Garske ebf7a6c7fb Add parsing of remaining capabilities. 2024-10-30 13:57:44 -07:00
David Garske 53feb3fb96 Add support for TPM2_GetCapability for TPM_CAP_PCRS. ZD 18881
Improve PCR extend to support -alg option.
2024-10-30 12:57:08 -07:00
David Garske fa1cd521a3 Helper to get wolfCrypt hash type. `TPMI_ALG_HASH TPM2_GetTpmHashType(int hashType)`. 2024-10-24 11:20:19 -07:00
JacobBarthelmeh a5f6c912ac
Merge pull request #382 from dgarske/ns350
Tested support for Nations NS350 and added simple capabilities example
2024-10-07 09:06:03 -06:00
David Garske 78457bebb7 Tested support for Nations NS350. Added simple capabilities example. 2024-10-04 08:35:35 -07:00
David Garske 5e8759584c
Merge pull request #379 from JacobBarthelmeh/example_quote
add example manual verification of quote signature with ecc
2024-09-23 11:35:33 -07:00
JacobBarthelmeh fd20b38533
Merge pull request #381 from dgarske/pthread
Move PTHREAD definition from options.h to config.h
2024-09-23 09:43:11 -06:00
David Garske 034306a49c Fix macros to match. Resolves `error: unused variable 'pubKeySz'` and `examples/pcr/quote.c:336:9: error: use of undeclared identifier 'pubKey'`. 2024-09-20 17:15:08 -07:00
JacobBarthelmeh 388e32912e use XMALLOC/XFREE and update macro guards 2024-09-20 10:02:45 -07:00
JacobBarthelmeh 48e140111c
Merge pull request #380 from dgarske/tpm_io_stm
Fix for STM32 GPIO SPI CS control to use pin number as bit offset
2024-09-19 15:14:38 -06:00
David Garske 462c4e01cb Move PTHREAD definition from options.h to config.h. Avoids possible redeclaration issue. 2024-09-19 11:54:09 -07:00
David Garske 4b56cfa313 Fix for STM32 GPIO SPI CS control to use pin number as bit offset, not direct. 2024-09-17 09:36:18 -07:00
JacobBarthelmeh a3beae82ee re-create correct hash before verify attempt 2024-09-13 14:53:56 -06:00
JacobBarthelmeh 4115da0b96 add example manual verification of quote signature with ecc 2024-09-13 12:09:53 -06:00
JacobBarthelmeh 3598e01544
Merge pull request #378 from dgarske/rc_warn
Proper fix for the RC_WARN error codes
2024-09-13 11:26:14 -06:00
David Garske d7f1e48669 Proper fix for the RC_WARN error codes. Broken in commit f983525f56 (PR #336). ZD18641 2024-09-13 10:04:01 -07:00
philljj 6020acfe4e
Merge pull request #376 from dgarske/tls_idevid
Improve the TPM TLS examples for use with `WOLFTPM_MFG_IDENTITY`
2024-09-11 15:35:10 -04:00
David Garske 8b5c5fe897 Peer review feedback. Cleanups for code comments, logging and white-space. 2024-09-11 12:12:15 -07:00