Commit Graph

1213 Commits (master)

Author SHA1 Message Date
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
David Garske 2df0af5130 Added missing doxygen to public API's. 2025-02-21 17:12:31 -08:00
David Garske 00749ad551 Fix run_examples.sh run.out location variable. 2025-02-21 16:53:23 -08:00
tmael dd57324735
Merge pull request #394 from dgarske/ek_verify
EK Cert Verification (no wolfCrypt)
2025-01-28 10:41:26 -08:00
David Garske c42fff4f7f EK Cert Verification with TPM only (no wolfCrypt). Example assumes ST33KTPM2X. `./configure --disable-wolfcrypt && make && ./examples/endorsement/verify_ek_cert` 2025-01-24 09:54:11 -08:00
Daniel Pouzzner ea7cf136ca
Merge pull request #396 from dgarske/autogen
Cleanups for autogen.sh
2025-01-23 11:40:54 -06:00
David Garske c96ffb9ad1 Cleanups for autogen.sh. 2025-01-07 13:41:37 -08:00
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