mirror of https://github.com/wolfSSL/wolfTPM.git
wolfTPM v2.5.0 release prep
parent
7e0fe8fddd
commit
3f84b2efbc
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.16)
|
cmake_minimum_required(VERSION 3.16)
|
||||||
|
|
||||||
project(wolfTPM VERSION 2.4.0 LANGUAGES C)
|
project(wolfTPM VERSION 2.5.0 LANGUAGES C)
|
||||||
|
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
|
||||||
set(WOLFTPM_DEFINITIONS)
|
set(WOLFTPM_DEFINITIONS)
|
||||||
|
|
35
ChangeLog.md
35
ChangeLog.md
|
@ -1,5 +1,40 @@
|
||||||
# Release Notes
|
# Release Notes
|
||||||
|
|
||||||
|
## wolfTPM Release 2.5 (07/22/2022)
|
||||||
|
|
||||||
|
**Summary**
|
||||||
|
|
||||||
|
Major expansion of the C# wrapper for key handling, CSR/Cert generation, RSA enc/dec and sign/verify.
|
||||||
|
Added Infineon SLB9672 support.
|
||||||
|
Enhancements to the CMake support.
|
||||||
|
Added new keygen example for creating a primary key.
|
||||||
|
|
||||||
|
**Detail**
|
||||||
|
|
||||||
|
* Fixed issue with sign signature buffer size checking (PR #232)
|
||||||
|
* Fixed support for using nonce from TPM (when using no wolfCrypt RNG `WOLFTPM2_USE_HW_RNG`) (PR #216)
|
||||||
|
* Fixed workaround for Windows TBS self test (PR #224)
|
||||||
|
* Fixed issue with CSharp handle unloading (PR #212)
|
||||||
|
* Fixed TPM support for using the public key with TLS (PR #210)
|
||||||
|
* Added crypto callback support for seeding RNG with TPM (PR #216)
|
||||||
|
* Added Infineon SLB9672 support (PR #214)
|
||||||
|
* Added support for using a unique template with create and create primary (PR #215)
|
||||||
|
* Added CSharp wrapper support for RSA encrypt/decrypt and Sign/Verify. (PR #232)
|
||||||
|
* Added CSharp wrapper documentation for CSR functions (PR #232)
|
||||||
|
* Added CSharp support for handling TPM errors with exception (PR #224)
|
||||||
|
* Added CSR wrappers and tests to assist with TPM based CSR/Self-Signed-Cert generation (including CSharp wrappers) (PR #219)
|
||||||
|
- Support for subject, key usage, custom request extensions and output as PEM or DER
|
||||||
|
- New structure `WOLFTPM2_CSR`, new API's `wolfTPM2_CSR_*` and new CSharp class `Csr`
|
||||||
|
* Added CSharp create primary key example (PR #215)
|
||||||
|
* Added CSharp wrapper and tests for `wolfTPM2_CreatePrimaryKey()` (PR #213)
|
||||||
|
* Added CSharp tests for authenticated sessions (PR #212)
|
||||||
|
* Added CSharp wrappers `wolfTPM2_SetAuthSession` and `wolfTPM2_NVStoreKey` (PR #209)
|
||||||
|
* Added CSharp `IDisposable` in classes for cleanup of unmanaged resources (PR #225)
|
||||||
|
* Added support for wolfTPM CMake to output the options.h (PR #211)
|
||||||
|
* Added CMake `WOLFTPM_DEBUG` option (PR #211)
|
||||||
|
* Improved the byte swapping logic for GCC (PR #231)
|
||||||
|
|
||||||
|
|
||||||
## wolfTPM Release 2.4 (05/06/2022)
|
## wolfTPM Release 2.4 (05/06/2022)
|
||||||
|
|
||||||
**Summary**
|
**Summary**
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* wolftpm_example.h
|
/* wolftpm_example.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* main.c
|
/* main.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,9 +16,10 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "wolftpm_example.h"
|
#include "wolftpm_example.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* wolftpm_example.c
|
/* wolftpm_example.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# All right reserved.
|
# All right reserved.
|
||||||
|
|
||||||
AC_COPYRIGHT([Copyright (C) 2014-2021 wolfSSL Inc.])
|
AC_COPYRIGHT([Copyright (C) 2014-2021 wolfSSL Inc.])
|
||||||
AC_INIT([wolftpm],[2.4.0],[https://github.com/wolfssl/wolfTPM/issues],[wolftpm],[http://www.wolfssl.com])
|
AC_INIT([wolftpm],[2.5.0],[https://github.com/wolfssl/wolfTPM/issues],[wolftpm],[http://www.wolfssl.com])
|
||||||
|
|
||||||
AC_PREREQ([2.63])
|
AC_PREREQ([2.63])
|
||||||
AC_CONFIG_AUX_DIR([build-aux])
|
AC_CONFIG_AUX_DIR([build-aux])
|
||||||
|
@ -23,7 +23,7 @@ AC_ARG_PROGRAM
|
||||||
AC_CONFIG_MACRO_DIR([m4])
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
AC_CONFIG_HEADERS([src/config.h])
|
AC_CONFIG_HEADERS([src/config.h])
|
||||||
|
|
||||||
WOLFTPM_LIBRARY_VERSION=13:0:0
|
WOLFTPM_LIBRARY_VERSION=14:0:0
|
||||||
# | | |
|
# | | |
|
||||||
# +------+ | +---+
|
# +------+ | +---+
|
||||||
# | | |
|
# | | |
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* activate_credential.c
|
/* activate_credential.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows how to decrypt a credential for Remote Attestation
|
/* This example shows how to decrypt a credential for Remote Attestation
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* credential.h
|
/* credential.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _CREDENTIAL_H_
|
#ifndef _CREDENTIAL_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* make_credential.c
|
/* make_credential.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows how to create a challenge for Remote Attestation */
|
/* This example shows how to create a challenge for Remote Attestation */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* bench.c
|
/* bench.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows benchmarks using the TPM2 wrapper API's in
|
/* This example shows benchmarks using the TPM2 wrapper API's in
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* bench.h
|
/* bench.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _WRAP_BENCH_H_
|
#ifndef _WRAP_BENCH_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* csr.c
|
/* csr.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,14 +16,14 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <wolftpm/tpm2.h>
|
#include <wolftpm/tpm2.h>
|
||||||
#include <wolftpm/tpm2_wrap.h>
|
#include <wolftpm/tpm2_wrap.h>
|
||||||
|
|
||||||
#ifdef WOLFTPM2_CERT_GEN
|
#if !defined(WOLFTPM2_NO_WRAPPER) && defined(WOLFTPM2_CERT_GEN)
|
||||||
|
|
||||||
#include <examples/tpm_io.h>
|
#include <examples/tpm_io.h>
|
||||||
#include <examples/tpm_test.h>
|
#include <examples/tpm_test.h>
|
||||||
|
@ -53,10 +53,10 @@ static int TPM2_CSR_Generate(WOLFTPM2_DEV* dev, int keyType, WOLFTPM2_KEY* key,
|
||||||
const char* subject = NULL;
|
const char* subject = NULL;
|
||||||
const char* keyUsage = "serverAuth,clientAuth,codeSigning,"
|
const char* keyUsage = "serverAuth,clientAuth,codeSigning,"
|
||||||
"emailProtection,timeStamping,OCSPSigning";
|
"emailProtection,timeStamping,OCSPSigning";
|
||||||
const char* custOid = "1.2.3.4.5";
|
|
||||||
const char* custOidVal = "This is NOT a critical extension";
|
|
||||||
WOLFTPM2_BUFFER output;
|
WOLFTPM2_BUFFER output;
|
||||||
#ifndef WOLFTPM2_NO_HEAP
|
#ifndef WOLFTPM2_NO_HEAP
|
||||||
|
const char* custOid = "1.2.3.4.5";
|
||||||
|
const char* custOidVal = "This is NOT a critical extension";
|
||||||
WOLFTPM2_CSR* csr = wolfTPM2_NewCSR();
|
WOLFTPM2_CSR* csr = wolfTPM2_NewCSR();
|
||||||
if (csr == NULL) {
|
if (csr == NULL) {
|
||||||
return MEMORY_E;
|
return MEMORY_E;
|
||||||
|
@ -234,14 +234,14 @@ int TPM2_CSR_ExampleArgs(void* userCtx, int argc, char *argv[])
|
||||||
/* --- END TPM2 CSR Example -- */
|
/* --- END TPM2 CSR Example -- */
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
#endif /* WOLFTPM2_CERT_GEN */
|
#endif /* !WOLFTPM2_NO_WRAPPER && WOLFTPM2_CERT_GEN */
|
||||||
|
|
||||||
#ifndef NO_MAIN_DRIVER
|
#ifndef NO_MAIN_DRIVER
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
int rc = -1;
|
int rc = -1;
|
||||||
|
|
||||||
#ifdef WOLFTPM2_CERT_GEN
|
#if !defined(WOLFTPM2_NO_WRAPPER) && defined(WOLFTPM2_CERT_GEN)
|
||||||
rc = TPM2_CSR_ExampleArgs(NULL, argc, argv);
|
rc = TPM2_CSR_ExampleArgs(NULL, argc, argv);
|
||||||
#else
|
#else
|
||||||
(void)argc;
|
(void)argc;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* csr.h
|
/* csr.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM_CSR_EXAMPLE_H_
|
#ifndef _TPM_CSR_EXAMPLE_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* gpio.h
|
/* gpio.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _GPIO_H_
|
#ifndef _GPIO_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* gpio_config.c
|
/* gpio_config.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This examples demonstrates the use of GPIO available on some TPM modules.
|
/* This examples demonstrates the use of GPIO available on some TPM modules.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* read.c
|
/* read.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Example for reading the voltage level of TPM's GPIO
|
/* Example for reading the voltage level of TPM's GPIO
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* set.c
|
/* set.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Example for setting the voltage level of TPM's GPIO
|
/* Example for setting the voltage level of TPM's GPIO
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Tool and example for creating and storing primary keys using TPM2.0 */
|
/* Tool and example for creating and storing primary keys using TPM2.0 */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* keygen.c
|
/* keygen.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* keygen.h
|
/* keygen.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _KEYGEN_H_
|
#ifndef _KEYGEN_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* keyimport.c
|
/* keyimport.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* keyload.c
|
/* keyload.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
/* Tool and example for creating, storing and loading keys using TPM2.0 */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* flush.c
|
/* flush.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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 */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* flush.h
|
/* flush.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _FLUSH_H_
|
#ifndef _FLUSH_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* native_test.c
|
/* native_test.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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() */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* native_test.h
|
/* native_test.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _NATIVE_TEST_H_
|
#ifndef _NATIVE_TEST_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* nvram.h
|
/* nvram.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _NVRAM_EXAMPLE_H_
|
#ifndef _NVRAM_EXAMPLE_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* read.c
|
/* read.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Tool and example for extracting a TPM key from the TPM's NVRAM
|
/* Tool and example for extracting a TPM key from the TPM's NVRAM
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* store.c
|
/* store.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Tool and example for storing a TPM key into the TPM's NVRAM
|
/* Tool and example for storing a TPM key into the TPM's NVRAM
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* extend.c
|
/* extend.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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 */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* pcr.h
|
/* pcr.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _PCR_H_
|
#ifndef _PCR_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* quote.c
|
/* quote.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows how to generate a TPM2.0 Quote that holds a signed
|
/* This example shows how to generate a TPM2.0 Quote that holds a signed
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* quote.h
|
/* quote.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _QUOTE_H_
|
#ifndef _QUOTE_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* read.c
|
/* read.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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 */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* reset.c
|
/* reset.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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 */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* pkcs7.c
|
/* pkcs7.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* pkcs7.h
|
/* pkcs7.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM_PKCS7_EXAMPLE_H_
|
#ifndef _TPM_PKCS7_EXAMPLE_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* seal.c
|
/* seal.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Example for TPM 2.0 sealing a user secret using TPM key */
|
/* Example for TPM 2.0 sealing a user secret using TPM key */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* seal.h
|
/* seal.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _SEAL_H_
|
#ifndef _SEAL_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* unseal.c
|
/* unseal.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* 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 */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* clock_set.c
|
/* clock_set.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows how to increment the TPM2 clock */
|
/* This example shows how to increment the TPM2 clock */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* clock_set.h
|
/* clock_set.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _CLOCK_SET_H_
|
#ifndef _CLOCK_SET_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* signed_timestamp.c
|
/* signed_timestamp.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows how to use extended authorization sessions (TPM2.0) and
|
/* This example shows how to use extended authorization sessions (TPM2.0) and
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* signed_timestamp.h
|
/* signed_timestamp.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _SIGNED_TIMESTAMP_H_
|
#ifndef _SIGNED_TIMESTAMP_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tls_client.c
|
/* tls_client.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tls_client.h
|
/* tls_client.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM_TLS_CLIENT_H_
|
#ifndef _TPM_TLS_CLIENT_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tls_client_notpm.c
|
/* tls_client_notpm.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tls_common.h
|
/* tls_common.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM_TLS_COMMON_H_
|
#ifndef _TPM_TLS_COMMON_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tls_server.c
|
/* tls_server.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tls_server.h
|
/* tls_server.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM_TLS_SERVER_H_
|
#ifndef _TPM_TLS_SERVER_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_io.c
|
/* tpm_io.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This source code provides example TPM IO HAL Callbacks for various platforms
|
/* This source code provides example TPM IO HAL Callbacks for various platforms
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_io.h
|
/* tpm_io.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM_IO_H_
|
#ifndef _TPM_IO_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_io_atmel.c
|
/* tpm_io_atmel.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows IO interfaces for ATMEL microcontrollers using ASF */
|
/* This example shows IO interfaces for ATMEL microcontrollers using ASF */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_io_barebox.c
|
/* tpm_io_barebox.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows IO interfaces for Barebox */
|
/* This example shows IO interfaces for Barebox */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_io_linux.c
|
/* tpm_io_linux.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows IO interfaces for Linux using the kernel spidev and i2c driver
|
/* This example shows IO interfaces for Linux using the kernel spidev and i2c driver
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_io_qnx.c
|
/* tpm_io_qnx.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows IO interfaces for QNX */
|
/* This example shows IO interfaces for QNX */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_io_st.c
|
/* tpm_io_st.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows IO interfaces for STM32 CubeMX HAL */
|
/* This example shows IO interfaces for STM32 CubeMX HAL */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_io_xilinx.c
|
/* tpm_io_xilinx.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* This example shows IO interfaces for Xilinx */
|
/* This example shows IO interfaces for Xilinx */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_test.h
|
/* tpm_test.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_test_keys.c
|
/* tpm_test_keys.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* use ANSI stdio for support of format strings, must be set before
|
/* use ANSI stdio for support of format strings, must be set before
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm_test_keys.h
|
/* tpm_test_keys.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM_TEST_KEYS_H_
|
#ifndef _TPM_TEST_KEYS_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* wrap_test.c
|
/* wrap_test.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 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. */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* wrap_test.h
|
/* wrap_test.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _WRAP_TEST_H_
|
#ifndef _WRAP_TEST_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2.c
|
/* tpm2.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_linux.c
|
/* tpm2_linux.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_packet.c
|
/* tpm2_packet.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_param_enc.c
|
/* tpm2_param_enc.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_swtpm.c
|
/* tpm2_swtpm.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_tis.c
|
/* tpm2_tis.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_winapi.c
|
/* tpm2_winapi.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_wrap.c
|
/* tpm2_wrap.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -5103,9 +5103,10 @@ int wolfTPM2_CSR_Generate_ex(WOLFTPM2_DEV* dev, WOLFTPM2_KEY* key,
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
}
|
}
|
||||||
|
|
||||||
rc = CSR_KeySetup(dev, &csr, key, &csrKey, sigType, devId);
|
XMEMSET(&csrKey, 0, sizeof(csrKey));
|
||||||
|
rc = wc_InitCert(&csr.req);
|
||||||
if (rc == 0) {
|
if (rc == 0) {
|
||||||
rc = wc_InitCert(&csr.req);
|
rc = CSR_KeySetup(dev, &csr, key, &csrKey, sigType, devId);
|
||||||
}
|
}
|
||||||
if (rc == 0) {
|
if (rc == 0) {
|
||||||
rc = wolfTPM2_CSR_SetSubject(dev, &csr, subject);
|
rc = wolfTPM2_CSR_SetSubject(dev, &csr, subject);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* unit_tests.c
|
/* unit_tests.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* options.h.in
|
/* options.h.in
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2.h
|
/* tpm2.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_linux.h
|
/* tpm2_linux.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM2_LINUX_H_
|
#ifndef _TPM2_LINUX_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_packet.h
|
/* tpm2_packet.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_param_enc.h
|
/* tpm2_param_enc.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM2_PARAM_ENC_H_
|
#ifndef _TPM2_PARAM_ENC_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_socket.h
|
/* tpm2_socket.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM2_SOCKET_H_
|
#ifndef _TPM2_SOCKET_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_swtpm.h
|
/* tpm2_swtpm.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM2_SWTPM_H_
|
#ifndef _TPM2_SWTPM_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_tis.h
|
/* tpm2_tis.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_types.h
|
/* tpm2_types.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -369,8 +369,9 @@ typedef int64_t INT64;
|
||||||
/* ---------------------------------------------------------------------------*/
|
/* ---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/* Optional delay between polling */
|
/* Optional delay between polling */
|
||||||
#if defined(WOLFTPM_SLB9670) && !defined(XTPM_WAIT)
|
#if (defined(WOLFTPM_SLB9670) || defined(WOLFTPM_SLB9672)) && !defined(XTPM_WAIT)
|
||||||
/* For Infineon SLB9670 adding 10us delay improves performance */
|
/* For Infineon SLB9670 and SLB9672 adding 10us delay improves performance
|
||||||
|
* and prevents issue with rapid use at higher speeds */
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#ifndef XTPM_WAIT_POLLING_US
|
#ifndef XTPM_WAIT_POLLING_US
|
||||||
#define XTPM_WAIT_POLLING_US 10 /* 0.01ms */
|
#define XTPM_WAIT_POLLING_US 10 /* 0.01ms */
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_winapi.h
|
/* tpm2_winapi.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU General Public License
|
* You should have received a copy of the GNU General Public License
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef _TPM2_WINAPI_H_
|
#ifndef _TPM2_WINAPI_H_
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* tpm2_wrap.h
|
/* tpm2_wrap.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* version.h.in
|
/* version.h.in
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
@ -34,8 +34,8 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define LIBWOLFTPM_VERSION_STRING "2.4.0"
|
#define LIBWOLFTPM_VERSION_STRING "2.5.0"
|
||||||
#define LIBWOLFTPM_VERSION_HEX 0x02004000
|
#define LIBWOLFTPM_VERSION_HEX 0x02005000
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* version.h.in
|
/* version.h.in
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/* visibility.h
|
/* visibility.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2021 wolfSSL Inc.
|
* Copyright (C) 2006-2022 wolfSSL Inc.
|
||||||
*
|
*
|
||||||
* This file is part of wolfTPM.
|
* This file is part of wolfTPM.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue