Skip to content

Commit 724ff37

Browse files
authored
Merge pull request #363 from dgarske/rel_v3.4.0_append
Various fixes for v3.4.0 release
2 parents 642beec + a441646 commit 724ff37

File tree

6 files changed

+33
-26
lines changed

6 files changed

+33
-26
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,17 +291,25 @@ if (WOLFTPM_EXAMPLES)
291291
add_tpm_example(make_credential attestation/make_credential.c)
292292
add_tpm_example(bench bench/bench.c)
293293
add_tpm_example(csr csr/csr.c)
294+
add_tpm_example(get_ek_certs endorsement/get_ek_certs.c)
295+
add_tpm_example(ifx_fw_extract firmware/ifx_fw_extract.c)
296+
add_tpm_example(ifx_fw_update firmware/ifx_fw_update.c)
294297
add_tpm_example(gpio_config gpio/gpio_config.c)
295298
add_tpm_example(gpio_read gpio/gpio_read.c)
296299
add_tpm_example(gpio_set gpio/gpio_set.c)
300+
add_tpm_example(create_primary keygen/create_primary.c)
301+
add_tpm_example(external_import keygen/external_import.c)
297302
add_tpm_example(keygen keygen/keygen.c)
298303
add_tpm_example(keyimport keygen/keyimport.c)
299304
add_tpm_example(keyload keygen/keyload.c)
300305
add_tpm_example(flush management/flush.c)
301306
add_tpm_example(native_test native/native_test.c)
307+
add_tpm_example(counter nvram/counter.c)
308+
add_tpm_example(policy_nv nvram/policy_nv.c)
302309
add_tpm_example(read nvram/read.c)
303310
add_tpm_example(store nvram/store.c)
304311
add_tpm_example(extend pcr/extend.c)
312+
add_tpm_example(policy_sign pcr/policy_sign.c)
305313
add_tpm_example(quote pcr/quote.c)
306314
add_tpm_example(read_pcr pcr/read_pcr.c)
307315
add_tpm_example(reset pcr/reset.c)

docs/Doxyfile

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,14 @@ WARN_LOGFILE =
865865
# spaces. See also FILE_PATTERNS and EXTENSION_MAPPING
866866
# Note: If this tag is empty the current directory is searched.
867867

868-
INPUT = ./docs/README.md ./wolftpm/tpm2.h ./wolftpm/tpm2_wrap.h ./hal/tpm_io.h
868+
INPUT = ./docs/README.md \
869+
./examples/README.md \
870+
./examples/pcr/README.md \
871+
./examples/attestation/README.md \
872+
./examples/boot/README.md \
873+
./wolftpm/tpm2.h \
874+
./wolftpm/tpm2_wrap.h \
875+
./hal/tpm_io.h
869876

870877
# This tag can be used to specify the character encoding of the source files
871878
# that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses
@@ -954,7 +961,7 @@ RECURSIVE = NO
954961
# Note that relative paths are relative to the directory from which doxygen is
955962
# run.
956963

957-
EXCLUDE = ./examples
964+
EXCLUDE =
958965

959966
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
960967
# directories that are symbolic links (a Unix file system feature) are excluded
@@ -1162,13 +1169,6 @@ VERBATIM_HEADERS = YES
11621169

11631170
ALPHABETICAL_INDEX = YES
11641171

1165-
# The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in
1166-
# which the alphabetical index list will be split.
1167-
# Minimum value: 1, maximum value: 20, default value: 5.
1168-
# This tag requires that the tag ALPHABETICAL_INDEX is set to YES.
1169-
1170-
COLS_IN_ALPHA_INDEX = 5
1171-
11721172
# In case all classes in a project start with a common prefix, all classes will
11731173
# be put under the same header in the alphabetical index. The IGNORE_PREFIX tag
11741174
# can be used to specify a prefix (or a list of prefixes) that should be ignored
@@ -2065,7 +2065,7 @@ MAN_LINKS = NO
20652065
# captures the structure of the code including all documentation.
20662066
# The default value is: NO.
20672067

2068-
GENERATE_XML = NO
2068+
GENERATE_XML = YES
20692069

20702070
# The XML_OUTPUT tag is used to specify where the XML pages will be put. If a
20712071
# relative path is entered the value of OUTPUT_DIRECTORY will be put in front of

docs/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ cd wolftpm
6363
make
6464
```
6565

66-
For detailed build instructions see [/README.md](/README.md#building).
66+
For detailed build instructions see [README.md](/README.md#building).
6767

6868
## Getting Started
6969

@@ -73,17 +73,17 @@ To interface with the hardware platform that is running these applications, plea
7373

7474
### Examples
7575

76-
See [/examples/README.md](/examples/README.md)
76+
See [examples/README.md](/examples/README.md)
7777

7878
### Benchmarks
7979

80-
See [/README.md](/README.md#tpm2-benchmarks)
80+
See [README.md](/README.md#tpm2-benchmarks)
8181

8282
## wolfTPM Library Design
8383

8484
### Library Headers
8585

86-
wolfTPM header files are located in [/wolftpm](/wolftpm).
86+
wolfTPM header files are located in [wolftpm](/wolftpm).
8787

8888
The general header files that should be included from wolfTPM is shown below:
8989

@@ -104,11 +104,11 @@ See [https://www.wolfssl.com/docs/wolftpm-manual/](https://www.wolfssl.com/docs/
104104

105105
### TPM 2.0 TCG API's
106106

107-
See [/wolftpm/tpm2.h](/wolftpm/tpm2.h) for inline doxygen style API documentation.
107+
See [wolftpm/tpm2.h](/wolftpm/tpm2.h) for inline doxygen style API documentation.
108108

109109
### wolfTPM Wrapper API's
110110

111-
See [/wolftpm/tpm2_wrap.h](/wolftpm/tpm2_wrap.h) for inline doxygen style API documentation.
111+
See [wolftpm/tpm2_wrap.h](/wolftpm/tpm2_wrap.h) for inline doxygen style API documentation.
112112

113113
## Support
114114

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ This example demonstrates the use of `authSession` (authorization Session) and `
3838

3939
Demonstrates the generation of TPM2.0 Quote used for attestation of the system state by putting PCR value(s) in a TPM signed structure.
4040

41-
More information about how to test and use PCR attestation can be found in the in [examples/pcr/README.md](./examples/pcr/README.md).
41+
More information about how to test and use PCR attestation can be found in the in [examples/pcr/README.md](/examples/pcr/README.md).
4242

4343
`./examples/pcr/quote`
4444
`./examples/pcr/extend`

wolftpm/tpm2_types.h

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -432,16 +432,15 @@ typedef int64_t INT64;
432432
/* ---------------------------------------------------------------------------*/
433433

434434
/* Optional delay between polling */
435-
#if (defined(WOLFTPM_SLB9670) || defined(WOLFTPM_SLB9672)) && !defined(XTPM_WAIT)
436-
/* For Infineon SLB9670 and SLB9672 adding 10us delay improves performance
435+
#if defined(__linux__) && !defined(XTPM_WAIT)
436+
/* Avoid excessive polling.
437+
* For Infineon SLB9670 and SLB9672 adding 10us delay improves performance
437438
* and prevents issue with rapid use at higher speeds */
438-
#ifdef __linux__
439-
#ifndef XTPM_WAIT_POLLING_US
440-
#define XTPM_WAIT_POLLING_US 10 /* 0.01ms */
441-
#endif
442-
#include <unistd.h>
443-
#define XTPM_WAIT() usleep(XTPM_WAIT_POLLING_US);
439+
#ifndef XTPM_WAIT_POLLING_US
440+
#define XTPM_WAIT_POLLING_US 10 /* 0.01ms */
444441
#endif
442+
#include <unistd.h>
443+
#define XTPM_WAIT() usleep(XTPM_WAIT_POLLING_US);
445444
#endif
446445
#ifndef XTPM_WAIT
447446
#define XTPM_WAIT() /* just poll without delay by default */

wolftpm/tpm2_wrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,7 @@ WOLFTPM_API int wolfTPM2_GetKeyTemplate_KeySeal(TPMT_PUBLIC* publicTemplate, TPM
26842684
\param publicTemplate pointer to an empty structure of TPMT_PUBLIC type, to store the new template
26852685
\param alg can be only TPM_ALG_RSA or TPM_ALG_ECC, see Note above
26862686
\param keyBits integer value, specifying bits for the key, typically 2048 (RSA) or 256 (ECC)
2687-
\param curveId use one of the accepted TPM_ECC_CURVE values like TPM_ECC_NIST_P256 (only used when alg=TPM_ALG_ECC)
2687+
\param curveID use one of the accepted TPM_ECC_CURVE values like TPM_ECC_NIST_P256 (only used when alg=TPM_ALG_ECC)
26882688
\param nameAlg integer value of TPMI_ALG_HASH type, specifying a valid TPM2 hashing algorithm (typically TPM_ALG_SHA256)
26892689
\param highRange integer value: 0=low range, 1=high range
26902690

0 commit comments

Comments
 (0)