David Garske
2aaf60c068
Fix to make sure CS is de-asserted on failure case. The `spi_close` does not clear the CS.
2021-06-01 12:42:54 -07:00
David Garske
ed1ec8c52d
Support for QNX with wolfTPM:
...
* Fix for `wolfTPM2_NVCreateAuth` to return `TPM_RC_NV_DEFINED` if already exists (it used to do this, but broke with GPIO changes).
* Fixes for building wolfTPM with wolfCrypt only (no TLS).
* Fix for building without RSA and ECC.
* Fix for `--enable-smallstack` with parameter encryption,
* Fix for nvram/store unused variable.
2021-06-01 10:34:28 -07:00
David Garske
d672e36b2f
Fix for building GPIO example without ST/auto-detect. Cleanup obsolete `txBuf[4] = 0x00;` replaced with SPI check wait state logic.
2021-05-06 11:52:51 -07:00
David Garske
2b8cfb8692
wolfTPM Release v2.1.0 preparation.
...
* Updated copyright
* Fixed minor cast warning.
* Fixed minor scan-build warnings.
* Cleanup print public and fix possible print of uninitialized field.
2021-03-17 10:13:50 -07:00
Dimitar Tomov
0c8948cde4
Changes from peer review, ifdef flow corrections
...
Signed-off-by: Dimitar Tomov <dimi@wolfssl.com>
2021-02-10 21:39:58 +02:00
Dimitar Tomov
a1a886cbc3
Revert "Correct naming convention for ifdefs related to STM32 CubeMX HAL"
...
This reverts commit 63c91cfa37
.
2021-02-10 21:28:50 +02:00
Dimitar Tomov
63c91cfa37
Correct naming convention for ifdefs related to STM32 CubeMX HAL
...
Signed-off-by: Dimitar Tomov <dimi@wolfssl.com>
2021-02-10 21:16:49 +02:00
Dimitar Tomov
cb9f97f063
Add tpm_io callback for STM32 CubeMX I2C HAL
...
Signed-off-by: Dimitar Tomov <dimi@wolfssl.com>
2021-02-10 21:13:33 +02:00
David Garske
845b3d1da2
Release fixes and cleanups. Fixes for init of `WOLFTPM2_HASH` in `wolfTPM2_HashStart`. Fix for for various build configurations (--disable-wrapper). Fix for Microchip "sign" bit on symmetric keys. Fix for scan-build warnings. Cleanup whitespace.
2020-12-07 11:01:02 -08:00
Elms
045800ccf5
examples: factor out common key setup steps
2020-11-12 14:04:00 -08:00
David Garske
ee3dc75d3e
Fixes for SPI CS auto-detection on Infineon SLB9670. I was able to reproduce issue on Pi 3b+. First run detects on `/dev/spidev0.1` then finds on `/dev/spidev0.0` afterwards (odd).
2020-07-13 11:16:18 -07:00
David Garske
6d46b26bde
Added dynamic module detection at run-time when using internal TIS.
2020-07-13 09:55:36 -07:00
David Garske
30f2e644aa
Added NPCT75x Nuvoton support.
2020-07-13 09:54:00 -07:00
David Garske
0101d89f74
Moved the chip specific settings to `tpm2_types.h`.
2020-04-13 07:10:19 -07:00
David Garske
8182f84930
Add Xilinx Zynqmp bare-metal SPI support.
2020-04-13 07:09:49 -07:00
Chris Conlon
91ef0b0e6e
update copyright to 2020
2020-01-03 15:31:27 -08:00
David Garske
7887130287
wolfTPM v1.7 Release
2019-12-27 14:43:30 -08:00
David Garske
3feeeaae04
Added `WOLFTPM_DEBUG_TIMEOUT` macro for debugging the timeout checking.
2019-07-19 14:39:41 -07:00
David Garske
84e06489e8
Added support for Barebox (experimental).
2019-02-11 10:06:47 -08:00
David Garske
19bfc49d4e
Fix for polling timeout issue on RSA key gen. Improved performance for SLB9670 by adding 10us delay between polling. Tuned max SPI clock and performance for supported TPM 2.0 chips. Cleanups for the configure automake output. Updated benchmarks and console output for examples in README.md. Added self test wrapper and call to it in wrapper init to resolve ATTPM20 issue (can also be enabled using `WOLFTPM_PERFORM_SELFTEST`).
2019-02-08 17:29:34 -08:00
David Garske
f1353cbbaf
Fixes for STM32 CubeMX SPI example. Fix for issue with wrapper test AES key not being memset.
2019-02-07 15:25:58 -08:00
David Garske
29f773b6bb
Added benchmark CPS and KB/sec.
2019-02-01 13:27:52 -08:00
David Garske
b49454b130
Increased IO max to min 33MHz. Disabled Symmetric key creation in benchmark for mchp.
2019-01-31 09:08:06 -08:00
David Garske
dc441a1555
New support for mchp `--enable-mchp`.
2019-01-30 13:41:05 -08:00
David Garske
d33663caf3
Changed `./configure --enable-debug=verbse` or `#define WOLFTPM_DEBUG_VERBOSE` to enable the command and response logging. To enable the raw IO logging add the define `WOLFTPM_DEBUG_IO`.
2018-12-28 15:33:42 -08:00
David Garske
371f2780c0
Fixes for release testing ( #48 )
...
* Fixes for release testing. Fixes for building with `--disable-wolfcrypt` or `--disable-wrapper`. Fix for possible use of NULL parentKey in new private key functions.
* Fix for building with just `--enable-i2c`. Its currently supported/tested only with `ST33HTPH I2C` via `--enable-st33 --enable-i2c`.
2018-11-13 17:20:08 -06:00
David Garske
18e7412681
Fix for handling the `WC_NO_RNG` case. Fix no case with `implicit declaration of function ‘close’`.
2018-09-14 09:32:14 -07:00
David Garske
7f768a2afa
Further cleanup of the I2C busy handling to avoid delay and added additional code comments. Added key gen to benchmark. Updated README.md. Configure check to ensure advanced IO is enabled for I2C.
2018-09-05 19:28:09 -07:00
David Garske
911a5a7226
Added support for ST33TP I2C TPM 2.0 chip. Build using `./configure --enable-st33 --enable-advio --enable-i2c`.
2018-09-05 17:38:28 -07:00
David Garske
6fe075911a
* Added advanced IO callback support (enabled using `--enable-advio` or `#define WOLFTPM_ADV_IO`).
...
* Added ST33 TPM 2.0 support (`--enable-st33` or `#define WOLFTPM_ST33`). Only SPI version is tested and verified.
* Experimental TIS I2C support (`--enable-i2c` or `#define WOLFTPM_I2C`).
* Cleanup of the IO callback examples.
* Added support for Atmel ASF SPI.
2018-08-22 16:40:33 -07:00
David Garske
19ef638dc0
Fix for timeout checking. Fixes for OpenSTM32 project example. Started on ST33 support. Updated README.md and release note for v1.3 prep.
2018-07-19 15:45:49 -07:00
David Garske
c5586be75c
Added helper functions for converting RSA/ECC keys between wolf and TPM format. This only populates the public portion of the key. Fix to enable way to get public NV information. Increase default size for `WOLFTPM2_BUFFER`. Added wrapper example/tests for the new wolf helpers.
2018-06-01 16:26:39 -07:00
David Garske
3e462b0172
Added TPM bechmarking support.
2018-05-25 11:59:55 -07:00
David Garske
bf725524de
Removed the execute bit on new files.
2018-05-21 23:07:26 +00:00
David Garske
f9e9921df4
SPI hardware fix for device open. Resolves issue with Raspbian Kernel 4.9 due to SPI driver sub-system changes.
2018-05-02 11:48:39 -07:00
David Garske
db49e917ac
Split the native and wrapper test code into separate applications. Moved some of the utility wrapper functions into native area to support `WOLFTPM2_NO_WRAPPER`. Fix for storageKey auth in case when it used from NV.
2018-05-01 15:59:54 -07:00