David Garske
b69496c428
Add support for ST33 vendor specific command `TPM_CC_GetRandom2`, which allows getting DRBG data up to `TPM2B_MAX_BUFFER` in size.
2022-02-04 09:28:03 -08:00
David Garske
4cdc65071f
Merge pull request #201 from elms/fix/TpmToPemPub
...
Fix writing PEM in `wolfTPM2_RsaKey_TpmToPemPub`
2022-02-03 08:21:24 -08:00
Elms
351b7ed43a
Fix writing PEM in `wolfTPM2_RsaKey_TpmToPemPub`
2022-02-02 16:39:00 -08:00
elms
4523d9bce1
Merge pull request #199 from dgarske/spell
2021-12-08 09:22:25 -08:00
elms
db04fe646e
Merge pull request #198 from dgarske/pcr_select
2021-12-08 09:22:15 -08:00
David Garske
d035cd239c
Fix for a few spelling errors. Whitespace cleanup.
2021-12-07 11:10:50 -08:00
David Garske
eebd30a4d5
Improve `TPM2_SetupPCRSel` to allow calling multiple times to select additional PCR's. Improved the PCR example code.
2021-12-06 14:48:01 -08:00
David Garske
fa39826279
Merge pull request #197 from elms/prep/v2.3.1
...
v2.3.1 updates
2021-11-18 20:39:13 -08:00
Elms
8cf401a5ee
v2.3.1 updates
2021-11-18 16:47:03 -08:00
David Garske
8ff94c4237
Merge pull request #196 from elms/fix/make_install
...
Fix `make install` by renaming pcr example `read.c`
2021-11-18 12:08:28 -08:00
Elms
ede184c735
configure: keep example directory strcuture during install
2021-11-18 12:04:41 -08:00
Elms
7f717f506b
configure: make all examples not installed (eg `noinst`)
2021-11-18 11:04:03 -08:00
Elms
56a827ae44
Fix `make install` by renaming pcr example `read.c`
...
example files are installed into the same directory and must have
unique names.
2021-11-18 10:22:15 -08:00
elms
5af1360f3d
Merge pull request #195 from dgarske/rel_v2.3.0
2021-11-09 11:18:21 -08:00
elms
83129e54a9
Merge pull request #194 from dgarske/nuvoton_fixups
2021-11-09 11:18:07 -08:00
David Garske
4ea2520856
Peer review fixes.
2021-11-09 09:57:43 -08:00
David Garske
0f9e8b5768
wolfTPM Release v2.3.0
2021-11-08 15:49:00 -08:00
David Garske
c78d395a5c
Refactor GPIO support.
2021-11-08 15:13:03 -08:00
David Garske
85b73ad75f
Improve the IO layer try again logic.
2021-11-08 11:59:11 -08:00
David Garske
4adbbc560a
Improve the printing of the capabilities vendor firmware number. Spelling fixes.
2021-11-08 11:59:11 -08:00
elms
05d5a0b715
Merge pull request #191 from dgarske/be
2021-11-08 10:11:49 -08:00
David Garske
7b155b5549
Fix for big endian in TIS layer.
2021-10-29 13:52:12 -07:00
David Garske
00c92757e2
Merge pull request #187 from elms/fix/RSAES_padding
...
RSA_Encrypt: Fix for RSAES padding
2021-09-16 09:40:07 -07:00
Elms
91174287b3
RSA_Encrypt: Fix for RSAES padding
2021-09-16 08:42:23 -07:00
David Garske
b0a65e44b8
Merge pull request #185 from tomoveu/add-pcr-read-example
...
Added PCR Read example
2021-07-28 12:19:04 -07:00
Dimitar Tomov
5dfa13ec75
Added PCR Read example
...
Signed-off-by: Dimitar Tomov <dimi@wolfssl.com>
2021-07-28 14:48:58 +03:00
David Garske
5ef68f3b22
Merge pull request #184 from elms/test/CreateLoaded_allow_COMMAND_CODE
...
test: Allow `CreateLoaded` to pass on unsupported systems
2021-07-26 11:21:14 -07:00
Elms
02b8834244
test: Allow `CreateLoaded` to pass on unsupported systems
...
Some hardware may not support these, but allow native and wrap tests to pass with comment
2021-07-26 11:18:33 -07:00
elms
1a7865038a
Merge pull request #182 from dgarske/cred_fread
...
Fix for compiler warning for file read in make_credential.c
2021-07-22 13:17:42 -07:00
David Garske
54d3fea42b
Fix for mismatch memset size.
2021-07-22 11:33:13 -07:00
David Garske
ba1339b055
Fix for compiler warning for file read in make_credential.c. Updated attestation example documentation.
2021-07-22 11:09:16 -07:00
David Garske
3e355bfff2
Merge pull request #181 from elms/windows/disable_wolfcrypt
...
Fixes for Windows builds
2021-07-21 16:33:37 -07:00
Elms
4931ea0e51
Fix unused variables `--disable-wolfcrypt`
2021-07-21 16:30:22 -07:00
elms
22167f24ff
Fixes for Windows buids without wolfcrypt and other tools
2021-07-21 15:56:27 -07:00
Daniele Lacamera
a050782c1a
Merge pull request #180 from dgarske/rsa_no_wolfrng
...
Fixes for RSA RNG in edge case builds (fixes wolfBoot build error)
2021-07-15 08:38:18 -07:00
David Garske
d5ac9d0aed
Fix for RSA salt issue with `WOLFTPM2_USE_WOLF_RNG` is not defined. Fix for issue with `WC_RSA_BLINDING` not defined.
2021-07-15 08:29:54 -07:00
Eric Blankenhorn
524c884ffc
Merge pull request #179 from dgarske/rel_v2.2
...
wolfTPM release v2.2 prep
2021-07-13 18:28:17 -05:00
David Garske
b40574f545
Fix for keyload broken with PR 174. Added GPIO note about no input support for Nuvoton.
2021-07-13 16:06:33 -07:00
David Garske
d05e503784
Fix for possible leak of ephemeral key in TLS server example.
2021-07-13 12:57:39 -07:00
David Garske
937dbd048d
Fix for availability of `wc_RsaKeyToPublicDer` in wolfCrypt.
2021-07-13 12:06:37 -07:00
David Garske
6abca6dc78
Fix for building with `--disable-wrapper`.
2021-07-13 12:02:25 -07:00
David Garske
6ddcdb0763
Fixes for building with `--disable-wolfcrypt`.
2021-07-13 11:58:17 -07:00
David Garske
d17a182c30
Fix scan-build warnings.
2021-07-13 11:53:43 -07:00
David Garske
c83088decf
Release for wolfTPM v2.2.0 preparation.
2021-07-13 11:26:12 -07:00
David Garske
150e436703
Merge pull request #174 from tomoveu/add-ek-attestation
...
Added option to create keys under the EK in keygen example
2021-07-13 10:40:32 -07:00
David Garske
8455beaae4
Fixes for Public PEM functions. Cleanups.
2021-07-12 17:12:22 -07:00
Dimitar Tomov
bc9434aec9
Update examples README files
...
Signed-off-by: Dimitar Tomov <dimi@wolfssl.com>
2021-07-12 15:09:28 -07:00
Dimitar Tomov
8528a326be
Added fixes and unit tests for wolfTPM2_CreateLoadedKey and TPM2_CreateLoaded
...
* Added new units tests and fixed missing XMEMSET
* Renamed and modified PemToTpm to PubPemToTpm, works only with Pub keys
* Fixes from peer feedback
Signed-off-by: Dimitar Tomov <dimi@wolfssl.com>
2021-07-12 15:09:28 -07:00
Dimitar Tomov
3e217cc497
Made keygen and attestation examples work with EH keys
...
* Added option in keygen example to create and use keys under the EK
- Added PolicySecret to provide EK auth
* Fix wrong total auth area size when multiple auth sessions are used
* Workaround policy Session for EK auth
* Added flag in WOLFTPM2_HANDLE to specify when policyAuth is used
* Added three macros to check TPM2.0 Policy session type
* Added option to use keys under Endorsement Hierarchy in attestation examples
- MakeCredential modified to work without auth as TCG spec defines
- MakeCredential can now use EK pub to encrypt challenge
- AcivateCredential can now work with EK pub to decrypt challenge
* Added new wolfTPM2 wrapper for TPM2_CreateLoaded
- Added missing TPM2_CreateLoaded command in tpm2.c
- Create and load a key in single TPM 2.0 operation
* Added new wolfTPM2 wrappers to use PEM format in keygen
- wolfTPM2_RsaKey_TpmToPem
- wolfTPM2_RsaKey_PemToTpm
* Improved keygen, output in PEM format and saving EK's TPM2B_PUBLIC
- Added keygen option to output PEM files for TPM public keys
- Added saving of EK's TPM2B_PUBLIC for attestation purposes
* Modified keygen
- Uses new wolfTPM2_CreateLoaded wrapper to acquire correct AK name
- Stores AK name for attestation purposes
* Modified keyload to be able to load keys created under the EK/EH
- Uses new wrapper
- Can load keys created under EK/EH, non-AK and AK
* Added new wrapper for satisfying EK policy
* Applied fixes from peer review
Signed-off-by: Dimitar Tomov <dimi@wolfssl.com>
2021-07-12 15:09:28 -07:00
David Garske
da5a1adf9c
Merge pull request #172 from tomoveu/add-nuvoton-gpio
...
Add GPIO example for NPCT7xx
2021-07-12 15:08:31 -07:00