Commit Graph

260 Commits (27eea15e5d5ccc62ffce7141c81d4adb5a70b51c)

Author SHA1 Message Date
Eric Blankenhorn 27eea15e5d
Merge pull request #76 from dgarske/rel_v1.6
wolfTPM Release v1.6 preparation
2019-08-02 09:08:40 -05:00
David Garske c3bc039876 Fix for building unit tests with `./configure --disable-wolfcrypt`. Missing stdlib. 2019-08-02 06:48:12 -07:00
David Garske 3ecca5c2e7 wolfTPM release prep v1.6. 2019-08-01 16:31:51 -07:00
Eric Blankenhorn f116aa18c0
Merge pull request #75 from dgarske/test_nowolf
Fix for wolfCrypt init/cleanup issue with reference count
2019-08-01 15:53:37 -05:00
David Garske fa0781f558 Fix for wolfCrypt init/cleanup issue with reference count. This resolves an issue with `wolfTPM_Test` corrupting the crypto callbacks. 2019-08-01 12:49:11 -07:00
Eric Blankenhorn 7a79513120
Merge pull request #74 from dgarske/test_existing
Fix to restore existing TPM context after calling `wolfTPM2_Test`.
2019-07-29 17:59:59 -05:00
Eric Blankenhorn f9ae6cecd0
Merge pull request #72 from dgarske/hmac_key
Added support for keeping an HMAC key loaded
2019-07-29 17:52:14 -05:00
Eric Blankenhorn 775c8ad111
Merge pull request #73 from dgarske/smallstack
Added `--enable-smallstack` build option for reducing stack usage
2019-07-29 17:46:57 -05:00
David Garske 056d4a445d Also cleanup the generated CSR from `./examples/crl/crl` when running "clean". 2019-07-29 15:42:48 -07:00
David Garske 16e1b20775 Improvement to allow test cert clean without running. Example: `./certs/certreq.sh clean`. 2019-07-29 15:40:17 -07:00
David Garske e2f5721a83 Added `pkcs7tpmsignedex.p7s` to git ignore. 2019-07-29 15:36:37 -07:00
David Garske 22d9f95b9a Fix to restore existing TPM context after calling `wolfTPM2_Test`. 2019-07-29 11:10:05 -07:00
David Garske 2beeb4b4ac Added `--enable-smallstack` build options for reducing stack usage. 2019-07-26 12:36:50 -07:00
David Garske a4cf30838d Added support for keeping an HMAC key loaded on finish to allow using the same key for additional HMAC operations. 2019-07-25 08:52:56 -07:00
Eric Blankenhorn 38e7b00964
Merge pull request #71 from dgarske/active_dev
wolfBoot API unit tests
2019-07-23 17:23:10 -05:00
David Garske 6ee1cee883 Added more API unit tests. Cleanup of the argument checking return codes. 2019-07-23 14:43:40 -07:00
David Garske c6e45dc580 Added new wrapper API `wolfTPM2_OpenExisting` for accessing device that's already started. Added unit test framework. 2019-07-23 14:43:40 -07:00
Eric Blankenhorn 17bfd276b0
Merge pull request #69 from dgarske/fips
Added crypto callback flags for FIPS and Symmetric
2019-07-23 16:42:04 -05:00
David Garske 4e5710ef0d Fix to resolve handling of unsupported ECC curves with the TPM module and ECDHE. If curve is not supported it will fall-back to software ECC. 2019-07-23 11:37:32 -07:00
David Garske 90fcdeef09 Fix for `wolfTPM2_SetCommand` to ensure auth is cleared. 2019-07-19 14:40:06 -07:00
David Garske 3feeeaae04 Added `WOLFTPM_DEBUG_TIMEOUT` macro for debugging the timeout checking. 2019-07-19 14:39:41 -07:00
David Garske 677626ee1f Added support for ST33 `TPM2_SetMode` command for disabling power saving. 2019-07-19 14:34:40 -07:00
David Garske 4b0ac61ef5 Added FIPS mode and Use Symmetric options. 2019-07-15 14:34:40 -07:00
Eric Blankenhorn ac7c61af6a
Merge pull request #70 from dgarske/pcr
PCR wrappers / tests
2019-06-20 09:11:13 -05:00
David Garske b2063f67f3 Added new `wolfTPM2_ExtendPCR` wrapper. Added wrapper tests for PCR wrapper functions. 2019-06-19 16:29:40 -07:00
Eric Blankenhorn c9e794e4e9
Merge pull request #68 from dgarske/no_xbit
Remove execute bit on .c/.h files
2019-05-17 11:36:13 -05:00
David Garske 4de58e6d60 Remove execute bit on .c/.h files. 2019-05-14 13:58:06 -07:00
Eric Blankenhorn 95c983596d
Merge pull request #67 from dgarske/tls_tpm
TPM improvements for chip detection, compatibility and startup performance
2019-05-14 15:20:19 -05:00
David Garske c9a2f6ec47 Added support for XPRINTF. Moved the TPM hardware type detection until after the user_settings.h include. 2019-05-14 09:39:38 -07:00
David Garske 74e561f825 TPM improvements and fixes for testing hardware. Optimization to init mutex and rng on use only. 2019-05-08 11:41:09 -07:00
David Garske 5f0c7ba6c1 Fix printf type warnings. Added missing stdio.h for printf in examples. Added new API's `TPM2_SetActiveCtx`, `TPM2_ChipStartup`, `TPM2_SetHalIoCb` and `TPM2_Init_ex`. Fix to make sure TPM2_CTX is cleaned up after `wolfTPM2_Test`. Allowed way to indicate `BOOL` type already defined. 2019-05-07 14:35:23 -07:00
David Garske 3e9d70c159 Fix to better handle chip detection. Added stdio printf include for TPM benchmark. Added C++ support. 2019-05-07 10:39:17 -07:00
Eric Blankenhorn 8f87993fda
Merge pull request #66 from dgarske/tpm_test
Added new API to init/test TPM module
2019-05-07 07:49:48 -05:00
David Garske 01f5dc856c Added new API `wolfTPM2_Test` for testing for TPM and optionally returning capabilties. This API is useful for providing a "single shot" call without context to init and test the TPM module. 2019-05-06 13:54:44 -07:00
Eric Blankenhorn 84c91b25f6
Merge pull request #63 from dgarske/user_settings
Added way to include generated `wolftpm/options.h`
2019-02-28 09:35:53 -06:00
David Garske cf4acfeb1b Added way to include generated `wolftpm/options.h` (or customized one) using `WOLFTPM_USER_SETTINGS`. 2019-02-21 14:01:11 -08:00
Eric Blankenhorn b569322171
Merge pull request #62 from dgarske/rel_v1_5
wolfTPM v1.5 release preparation
2019-02-21 09:01:14 -06:00
David Garske d8effc7c05 Fixes for various scan-build and G++ warnings. Updates to ChangeLog.md and README.md. Fix for `./certs/certreq.sh clean` to not remove wolf certs. 2019-02-20 15:13:01 -08:00
David Garske 31c0629ed7 wolfTPM Release v1.5 preparation. Moved the release notes to `ChangeLog.md`. 2019-02-20 14:22:55 -08:00
Eric Blankenhorn da7d680fe3
Merge pull request #61 from dgarske/tls_bench
Fixes for building wolfTPM with `TLS_BENCH_MODE`
2019-02-13 16:54:21 -06:00
David Garske 8a8c79ec8e Fixes for building wolfTPM with `TLS_BENCH_MODE`. 2019-02-13 10:58:09 -08:00
Eric Blankenhorn afb4e92449
Merge pull request #60 from dgarske/tpm_cryptocb
Fixes and improvements for TLS examples and Crypto Callback
2019-02-12 18:02:34 -06:00
David Garske 4e7ccfe3b2 Update comment for TLS client (no TPM) example. 2019-02-12 15:50:22 -08:00
David Garske 4ee625e68e Additional cleanups and fixes for TLS server/client examples. 2019-02-12 15:41:17 -08:00
Eric Blankenhorn 6cb27b104b
Merge pull request #52 from dgarske/barebox
Added support for Barebox (experimental)
2019-02-12 16:27:53 -06:00
David Garske aaafa78624 Enhancement to the TLS clients to support better throughput benchmarking. Improved the read elapsed time for more accurate RX benchmarking. Added a simple non-TPM TLS example that integrates with the wolfTPM environment. 2019-02-12 13:37:55 -08:00
David Garske d21ba091b4 Cleanup to combine benchmark time code and allow override using `WOLFSSL_USER_CURRTIME`. Benchmark modes can be disabled using `NO_TPM_BENCH`. Fix a few minor warnings. 2019-02-12 10:29:22 -08:00
David Garske 6d836b91ad Fix to make sure the Crypto callback is unregistered on cleanup. 2019-02-12 09:21:37 -08:00
David Garske 84e06489e8 Added support for Barebox (experimental). 2019-02-11 10:06:47 -08:00
Eric Blankenhorn 4664405f7a
Merge pull request #56 from dgarske/tls_improve
TLS client / server example improvements
2019-02-11 10:49:03 -06:00