mirror of https://github.com/wolfSSL/wolfTPM.git
Fix for config.h, which should only be included from .c files, not headers. ZD 17473
parent
b676415d18
commit
b395b65287
|
@ -27,10 +27,6 @@
|
||||||
#include <stm32f4xx.h>
|
#include <stm32f4xx.h>
|
||||||
#include <cmsis_os.h>
|
#include <cmsis_os.h>
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include <config.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef WOLFSSL_USER_SETTINGS
|
#ifndef WOLFSSL_USER_SETTINGS
|
||||||
#include <wolfssl/options.h>
|
#include <wolfssl/options.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wolftpm_example.h"
|
#include "wolftpm_example.h"
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
* and extract the secret for challenge response to an attestation server
|
* and extract the secret for challenge response to an attestation server
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* This example shows how to create a challenge for Remote Attestation */
|
/* This example shows how to create a challenge for Remote Attestation */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#ifndef WOLFTPM2_NO_WRAPPER
|
#ifndef WOLFTPM2_NO_WRAPPER
|
||||||
|
|
|
@ -22,6 +22,10 @@
|
||||||
/* This example shows benchmarks using the TPM2 wrapper API's in
|
/* This example shows benchmarks using the TPM2 wrapper API's in
|
||||||
TPM2_Wrapper_Bench() below. */
|
TPM2_Wrapper_Bench() below. */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,9 @@
|
||||||
/* Example for using TPM to seal a secret using an external key based on PCR(s)
|
/* Example for using TPM to seal a secret using an external key based on PCR(s)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
|
@ -22,6 +22,9 @@
|
||||||
/* Example for using TPM to seal a secret using an external key based on PCR(s)
|
/* Example for using TPM to seal a secret using an external key based on PCR(s)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
|
@ -22,6 +22,9 @@
|
||||||
/* Example for using TPM for secure boot root of trust
|
/* Example for using TPM for secure boot root of trust
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
|
@ -20,7 +20,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This examples demonstrates the use of GPIO available on some TPM modules.
|
/* This examples demonstrates the use of GPIO available on some TPM modules.
|
||||||
* Support tested with STM ST33 and Nuvoton NPCT750 FW 7.2.3.0 or later */
|
* Support tested with STM ST33 and Nuvoton NPCT750 FW 7.2.3.0 or later
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <examples/gpio/gpio.h>
|
#include <examples/gpio/gpio.h>
|
||||||
|
|
|
@ -25,6 +25,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* Tool and example for creating and storing primary keys using TPM2.0 */
|
/* Tool and example for creating and storing primary keys using TPM2.0 */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -20,7 +20,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Example for importing an external RSA key with seed and creating a
|
/* Example for importing an external RSA key with seed and creating a
|
||||||
* child key under it. */
|
* child key under it.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
|
|
||||||
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* use ANSI stdio for support of format strings, must be set before
|
/* use ANSI stdio for support of format strings, must be set before
|
||||||
* including stdio.h
|
* including stdio.h
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* This is a helper tool for reseting the value of a TPM2.0 PCR */
|
/* This is a helper tool for reseting the value of a TPM2.0 PCR */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <examples/management/flush.h>
|
#include <examples/management/flush.h>
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* This example shows using the TPM2_ specification API's in TPM2_Native_Test() */
|
/* This example shows using the TPM2_ specification API's in TPM2_Native_Test() */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_param_enc.h>
|
#include <wolftpm/tpm2_param_enc.h>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,11 @@
|
||||||
* NB: This example uses Parameter Encryption to protect
|
* NB: This example uses Parameter Encryption to protect
|
||||||
* the Password Authorization of the TPM NVRAM Index
|
* the Password Authorization of the TPM NVRAM Index
|
||||||
*
|
*
|
||||||
**/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,11 @@
|
||||||
* NB: This example uses Parameter Encryption to protect the password of the
|
* NB: This example uses Parameter Encryption to protect the password of the
|
||||||
* TPM NVRAM Index, where the private and public parts of a TPM key is stored
|
* TPM NVRAM Index, where the private and public parts of a TPM key is stored
|
||||||
*
|
*
|
||||||
**/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,11 @@
|
||||||
* NB: This example uses Parameter Encryption to protect
|
* NB: This example uses Parameter Encryption to protect
|
||||||
* the Password Authorization of the TPM NVRAM Index
|
* the Password Authorization of the TPM NVRAM Index
|
||||||
*
|
*
|
||||||
**/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,11 @@
|
||||||
* NB: This example uses Parameter Encryption to protect the password of the
|
* NB: This example uses Parameter Encryption to protect the password of the
|
||||||
* TPM NVRAM Index, where the private and public parts of a TPM key is stored
|
* TPM NVRAM Index, where the private and public parts of a TPM key is stored
|
||||||
*
|
*
|
||||||
**/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* This is a helper tool for extending hash into a TPM2.0 PCR */
|
/* This is a helper tool for extending hash into a TPM2.0 PCR */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#ifndef WOLFTPM2_NO_WRAPPER
|
#ifndef WOLFTPM2_NO_WRAPPER
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* This is a helper tool for setting policies on a TPM 2.0 PCR */
|
/* This is a helper tool for setting policies on a TPM 2.0 PCR */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -22,6 +22,9 @@
|
||||||
/* Example for signing PCR(s) to create a policy for unsealing a secret
|
/* Example for signing PCR(s) to create a policy for unsealing a secret
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
* PCR measurement. PCR values are used as basis for system integrity.
|
* PCR measurement. PCR values are used as basis for system integrity.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#ifndef WOLFTPM2_NO_WRAPPER
|
#ifndef WOLFTPM2_NO_WRAPPER
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* This is a helper tool for reading the value of a TPM2.0 PCR */
|
/* This is a helper tool for reading the value of a TPM2.0 PCR */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* Example for TPM 2.0 sealing a user secret using TPM key */
|
/* Example for TPM 2.0 sealing a user secret using TPM key */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* This example demonstrates how to extract the data from a TPM seal object */
|
/* This example demonstrates how to extract the data from a TPM seal object */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -21,6 +21,10 @@
|
||||||
|
|
||||||
/* This example shows how to increment the TPM2 clock */
|
/* This example shows how to increment the TPM2 clock */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -23,6 +23,10 @@
|
||||||
* generate a signed timestamp from the TPM using a Attestation Identity Key.
|
* generate a signed timestamp from the TPM using a Attestation Identity Key.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* use ANSI stdio for support of format strings, must be set before
|
/* use ANSI stdio for support of format strings, must be set before
|
||||||
* including stdio.h
|
* including stdio.h
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -19,7 +19,12 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows using the TPM2 wrapper API's in TPM2_Wrapper_Test() below. */
|
/* This example shows using the TPM2 wrapper API's in TPM2_Wrapper_Test() below.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
|
@ -31,6 +31,10 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
#include "tpm_io.h"
|
#include "tpm_io.h"
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
|
|
||||||
/* This example shows IO interfaces for ATMEL microcontrollers using ASF */
|
/* This example shows IO interfaces for ATMEL microcontrollers using ASF */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
|
|
||||||
/* This example shows IO interfaces for Barebox */
|
/* This example shows IO interfaces for Barebox */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
|
|
|
@ -23,6 +23,9 @@
|
||||||
* - TC2XX/TC3XX using macro: `WOLFTPM_INFINEON_TRICORE`.
|
* - TC2XX/TC3XX using macro: `WOLFTPM_INFINEON_TRICORE`.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
|
|
|
@ -23,8 +23,11 @@
|
||||||
*
|
*
|
||||||
* NB: To use /dev/tpm0, wolfTPM does not require an IO callback, just pass NULL
|
* NB: To use /dev/tpm0, wolfTPM does not require an IO callback, just pass NULL
|
||||||
*
|
*
|
||||||
* */
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
|
|
|
@ -20,8 +20,12 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows IO interfaces for Microchip micro-controllers using
|
/* This example shows IO interfaces for Microchip micro-controllers using
|
||||||
* MPLAB X and Harmony */
|
* MPLAB X and Harmony
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
|
|
||||||
/* Support for Memory Mapped I/O for accessing TPM */
|
/* Support for Memory Mapped I/O for accessing TPM */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
|
|
||||||
/* This example shows IO interfaces for QNX */
|
/* This example shows IO interfaces for QNX */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
|
|
||||||
/* This example shows IO interfaces for STM32 CubeMX HAL */
|
/* This example shows IO interfaces for STM32 CubeMX HAL */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
|
|
|
@ -21,6 +21,9 @@
|
||||||
|
|
||||||
/* This example shows IO interfaces for Xilinx */
|
/* This example shows IO interfaces for Xilinx */
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_packet.h>
|
#include <wolftpm/tpm2_packet.h>
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#if !defined(WOLFTPM2_NO_WRAPPER)
|
#if !defined(WOLFTPM2_NO_WRAPPER)
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_types.h>
|
#include <wolftpm/tpm2_types.h>
|
||||||
|
|
||||||
#ifdef WOLFTPM_LINUX_DEV
|
#ifdef WOLFTPM_LINUX_DEV
|
||||||
|
|
|
@ -19,10 +19,12 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_packet.h>
|
#include <wolftpm/tpm2_packet.h>
|
||||||
|
|
||||||
|
|
||||||
/* Endianess Helpers */
|
/* Endianess Helpers */
|
||||||
#ifdef LITTLE_ENDIAN_ORDER
|
#ifdef LITTLE_ENDIAN_ORDER
|
||||||
#define cpu_to_be16(d) ByteReverseWord16(d)
|
#define cpu_to_be16(d) ByteReverseWord16(d)
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_param_enc.h>
|
#include <wolftpm/tpm2_param_enc.h>
|
||||||
#include <wolftpm/tpm2_packet.h>
|
#include <wolftpm/tpm2_packet.h>
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,10 @@
|
||||||
* See docs/SWTPM.md
|
* See docs/SWTPM.md
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_types.h>
|
#include <wolftpm/tpm2_types.h>
|
||||||
|
|
||||||
#ifdef WOLFTPM_SWTPM
|
#ifdef WOLFTPM_SWTPM
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_tis.h>
|
#include <wolftpm/tpm2_tis.h>
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,9 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_types.h>
|
#include <wolftpm/tpm2_types.h>
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
#include <wolftpm/tpm2_param_enc.h>
|
#include <wolftpm/tpm2_param_enc.h>
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,6 @@
|
||||||
#ifndef __TPM2_TYPES_H__
|
#ifndef __TPM2_TYPES_H__
|
||||||
#define __TPM2_TYPES_H__
|
#define __TPM2_TYPES_H__
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include <config.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <wolftpm/visibility.h>
|
#include <wolftpm/visibility.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue