Commit Graph

314 Commits (1d8ea0cfd2df6188701f6fd8c0aba9ad3bc1b743)

Author SHA1 Message Date
Elms ba75a0b438 tests: Pass test with ibmswtpm2
RC handle number modifier is added to response code.
2021-03-04 15:24:59 -08:00
Elms 52f3972d3f test: flush before abort to get errors to log 2021-03-04 11:10:44 -08:00
Elms e0d4aba037 Prevent potential buffer overrun in KDFa
found by running `CFLAGS="-fsanitize=address" ./configure
--enable-swtpm` and and running `./scripts/swtpm_sim.test`
2021-03-04 11:10:28 -08:00
David Garske 8087afaf27 Fixes from peer review. Resolve issue with make check. Removed the TPM Simulator for make check (does not build out of the box on all platforms). Make dist was not including the new tpm2_socket.h. 2020-12-01 07:45:04 -08:00
Dimitar Tomov 24a49de385 Added AES CFB parameter support, salted TPM session, fixed KDFa and examples
* Added key generation example with parameter encryption
* Fixes and cleanups for KDFa
* Added KDFa unit test (passes)
* Added AES CFB support
* Fix for nonceTPM
* Added support for encrypted RSA salt and salted-unbounded session
* Removed unsalted-unbounded specific code for authValueKDF from KDFa
* Add innerWrap support
* Add missing wolfcrypt header for AES CFB
* Fixes for casting when calling KDFa for AES CFB parameter encryption
* Add outerWrap support

Signed-off-by: Dimitar Tomov <dimi@wolfssl.com>
2020-11-19 15:08:30 +02:00
Elms 3a1ef5a0a4 Add winapi for Windows TBS support (with minGW build)
TESTED:

  `./configure --host=i686 CC=i686-w64-mingw32-gcc CFLAGS="-DWIN32 \
  -DMINGW -D_WIN32_WINNT=0x0600" LIBS="-lws2_32 -ltbs" \
  --enable-winapi`
2020-10-07 13:22:19 -07:00
Elms e93c47c11b `make check` runs with simulator for `--enable-swtpm` 2020-09-30 13:11:24 -07:00
Elms 9617dab37e swtpm: Rename SOCKET option to SWTPM 2020-09-24 08:37:06 -07:00
Elms 63736417b2 Add socket connection option for using with TPM2 simulator
This is largely based on and tested against http://ibmswtpm.sourceforge.net/
2020-09-23 10:39:38 -07:00
Dimitar Tomov 816272bf6a Update unit testing for wolfTPM2_Init to reflect Linux TIS driver support
Signed-off-by: Dimitar Tomov <dimi@designfirst.ee>
2020-05-13 15:51:37 +03:00
Chris Conlon 91ef0b0e6e update copyright to 2020 2020-01-03 15:31:27 -08: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 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