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
Eric Blankenhorn
a1449d4a18
Merge pull request #377 from dgarske/tpm_pcr
...
Added tests for policy seal/unseal with multiple PCR's.
2024-09-11 10:31:46 -05:00
Eric Blankenhorn
765c7d7adc
Merge pull request #375 from dgarske/restrict_decrypt
...
Per TCG spec RSA/ECC symmetric field should only be populated for restricted/decrypt
2024-09-11 08:35:45 -05:00
David Garske
460e6003c9
Added tests for policy seal/unseal with multiple PCR's.
2024-09-10 11:53:13 -07:00
David Garske
03070dabd7
Improve the TPM TLS examples for use with `WOLFTPM_MFG_IDENTITY`. Tested with ST33KTPM2X SEMI-CUSTOM DEVICE ID.
2024-09-09 10:35:22 -07:00
David Garske
d2a4121481
Per TCG spec RSA/ECC symmetric field should only be populated for restricted and decrypt. ZD 18560
2024-09-04 10:00:44 -07:00
Eric Blankenhorn
e2ef780682
Merge pull request #374 from dgarske/nofilesystem
...
Fix and test for no filesystem
2024-09-03 08:13:33 -05:00
David Garske
1603cfdaaf
More fixes for no filesystem.
2024-08-30 09:58:04 -07:00
David Garske
2a5e74113b
Fix and test for no filesystem.
2024-08-30 08:02:39 -07:00
David Garske
8df0ddc23b
Merge pull request #373 from bandi13/fixDocumentation
...
Minor documentation fixes
2024-08-28 06:20:55 -07:00
Andras Fekete
3977395738
Minor documentation fixes
2024-08-28 09:13:56 -04:00
Eric Blankenhorn
db9e83422a
Merge pull request #369 from dgarske/certify
...
Added example for TPM2_Certify
2024-08-22 13:06:18 -05:00
David Garske
a6d7ed8695
Added example for `TPM2_Certify`:
...
* Added new build option for TPM provisioning (`--enable-provisioning` on by default).
* Added new `wolfTPM2_CreatePrimaryKey_ex` and `WOLFTPM2_PKEY` that supports returning creation ticket/hash.
* Added key templates for initial device (IDevID) and attestation keys (IAK).
* Extended `create_primary` example to support creation or IDevID and IAK.
* Added new policy hash helper API `wolfTPM2_PolicyHash`
* Switch handle/nvIndex string parsing to use `strtoul`.
ZD 18347
2024-08-22 10:38:01 -07:00
Eric Blankenhorn
fc683a1cc0
Merge pull request #372 from dgarske/pcrsel
...
Fixes for PCR selection and keygen with `-sym=` option
2024-08-22 12:06:52 -05:00
David Garske
a98d0b0d3c
Improve the unit test for PCR select with HASH_COUNT.
2024-08-22 07:39:32 -07:00
David Garske
070232104e
Fixes for keygen with `-sym=`.
2024-08-21 11:55:17 -07:00
David Garske
a012348fe9
Fixes for `TPM2_SetupPCRSel`. Added test cases. Fixes ZD 18492
2024-08-21 11:29:08 -07:00
Eric Blankenhorn
1cea780851
Merge pull request #371 from dgarske/zd18470
...
Fixes and new tests for building wolfCrypt/wolfTPM without ECC or RSA
2024-08-21 09:56:24 -05:00
David Garske
026c82f799
Fixes and new tests for building wolfCrypt/wolfTPM without ECC or RSA. Fixes ZD 18470. Improved smallstack (eliminated `WOLFTPM2_MAX_BUFFER`). Fixes for building with NO_ASN.
2024-08-19 09:55:15 -07:00
David Garske
f1ce2d268f
Merge pull request #367 from bandi13/fixDoxyfile
...
Minor naming fix
2024-08-01 21:08:56 -07:00
Andras Fekete
10a077838a
Minor naming fix
2024-08-01 22:48:21 -04:00
Eric Blankenhorn
dcd5172d99
Merge pull request #366 from dgarske/devtpm
...
Various improvements for `/dev/tpm0`
2024-08-01 08:47:29 -05:00
David Garske
522ba02235
Fix the udev instructions.
2024-07-31 13:41:12 -07:00
David Garske
6951b8d307
Fix for /dev/tpm0 file descriptor check ( fixes #365 ). Added documentation for /dev/tpm0 permissions ( fixes #358 ). Various spelling and documentation cleanups.
2024-07-31 11:21:53 -07:00
András Fekete
196c06cde6
Merge pull request #364 from dgarske/license
...
Fix issue with license header matching.
2024-07-30 18:15:14 -04:00
David Garske
ae9aa4a725
Fix issue with license header matching.
2024-07-30 15:10:52 -07:00
András Fekete
724ff3788e
Merge pull request #363 from dgarske/rel_v3.4.0_append
...
Various fixes for v3.4.0 release
2024-07-30 17:57:43 -04:00