Merge pull request #414 from dgarske/rel_v3.9.0_prep

wolfTPM Release v3.9.0
pull/415/head v3.9.0
Eric Blankenhorn 2025-05-15 10:54:31 -05:00 committed by GitHub
commit a19ac0d19c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
117 changed files with 178 additions and 130 deletions

View File

@ -1,6 +1,6 @@
# CMakeList.txt # CMakeList.txt
# #
# Copyright (C) 2006-2024 wolfSSL Inc. # Copyright (C) 2006-2025 wolfSSL Inc.
# #
# This file is part of wolfSSL. (formerly known as CyaSSL) # This file is part of wolfSSL. (formerly known as CyaSSL)
# #
@ -21,7 +21,7 @@
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.16)
project(wolfTPM VERSION 3.8.0 LANGUAGES C) project(wolfTPM VERSION 3.9.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)
@ -252,7 +252,7 @@ file(REMOVE ${OPTION_FILE})
file(APPEND ${OPTION_FILE} "/* wolftpm options.h\n") file(APPEND ${OPTION_FILE} "/* wolftpm options.h\n")
file(APPEND ${OPTION_FILE} " * generated from cmake configure options\n") file(APPEND ${OPTION_FILE} " * generated from cmake configure options\n")
file(APPEND ${OPTION_FILE} " *\n") file(APPEND ${OPTION_FILE} " *\n")
file(APPEND ${OPTION_FILE} " * Copyright (C) 2006-2024 wolfSSL Inc.\n") file(APPEND ${OPTION_FILE} " * Copyright (C) 2006-2025 wolfSSL Inc.\n")
file(APPEND ${OPTION_FILE} " *\n") file(APPEND ${OPTION_FILE} " *\n")
file(APPEND ${OPTION_FILE} " * This file is part of wolfSSL.\n") file(APPEND ${OPTION_FILE} " * This file is part of wolfSSL.\n")
file(APPEND ${OPTION_FILE} " *\n") file(APPEND ${OPTION_FILE} " *\n")

View File

@ -1,5 +1,46 @@
# Release Notes # Release Notes
## wolfTPM Release 3.9.0 (May 14, 2025)
**Summary**
Added Zephyr Project support, U-Boot bootloader support, improved thread safety with mutex protection, and various bug fixes. Added support for optional authentication password in keygen and improved ASN.1 certificate parsing.
**Detail**
* Added Zephyr Project Port support (PR #395)
- Added support for Zephyr RTOS integration
- Added example for Zephyr TPM usage
* Added U-Boot bootloader support (PR #398)
- Added support for Das U-Boot bootloader integration
- Added documentation for U-Boot usage
* Improved thread safety and mutex protection (PR #410)
- Added global mutex for concurrent thread usage
- Added support for pthread static mutex with older wolfSSL versions
- Added build option `WOLFTPM_NO_ACTIVE_THREAD_LS` to remove thread local on `gActiveTPM`
* Added keygen optional authentication password support (PR #409)
- Added `-auth=<yourpassword>` option to keygen
- Added test cases for AIK and default key generation
* Improved ASN.1 certificate parsing (PR #404, #408)
- Added `WOLFTPM2_NO_ASN` build option
- Refactored ASN.1 parsing for RSA certificates
- Fixed ASN.1 certificate parsing issues
* Added EK Certificate Verification with TPM only (PR #394)
- Added support for verifying EK certificates without wolfCrypt
- Added example for ST33KTPM2X
* Fixed various issues:
- Fixed possible handle leak in bench example (PR #412)
- Fixed issue with `wolfTPM2_Init_ex` handling of TPM_RC_INITIALIZE (PR #401)
- Fixed CSR version handling (PR #406)
- Fixed location for TPM simulator `/tmp` (PR #398)
- Fixed spelling and debug issues (PR #398)
- Fixed run_examples.sh run.out location variable (PR #401)
* Added new API `TPM2_GetHierarchyDesc` for getting hierarchy descriptions (PR #410)
* Added test case for `TPM2_GetAlgId` (PR #398)
* Added missing doxygen documentation for public APIs (PR #401)
* Cleanups for autogen.sh and build system improvements (PR #396)
## wolfTPM Release 3.8.0 (Jan 7, 2025) ## wolfTPM Release 3.8.0 (Jan 7, 2025)
**Summary** **Summary**

View File

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006-2024 wolfSSL Inc. # Copyright (C) 2006-2025 wolfSSL Inc.
# #
# This file is part of wolfTPM. # This file is part of wolfTPM.
# #

View File

@ -1,6 +1,6 @@
/* user_settings.h /* user_settings.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
# wolfTPM cmake for Espressif component # wolfTPM cmake for Espressif component
# #
# Copyright (C) 2006-2024 wolfSSL Inc. # Copyright (C) 2006-2025 wolfSSL Inc.
# #
# This file is part of wolfTPM. # This file is part of wolfTPM.
# #

View File

@ -1,6 +1,6 @@
/* /*
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* main.c /* main.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* wolftpm_example.h /* wolftpm_example.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* main.c /* main.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* wolftpm_example.c /* wolftpm_example.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* user_settings.h /* user_settings.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,9 +1,9 @@
# wolftpm # wolftpm
# Copyright (C) 2024 wolfSSL Inc. # Copyright (C) 2025 wolfSSL Inc.
# All right reserved. # All right reserved.
AC_COPYRIGHT([Copyright (C) 2014-2024 wolfSSL Inc.]) AC_COPYRIGHT([Copyright (C) 2014-2025 wolfSSL Inc.])
AC_INIT([wolftpm],[3.8.0],[https://github.com/wolfssl/wolfTPM/issues],[wolftpm],[http://www.wolfssl.com]) AC_INIT([wolftpm],[3.9.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])
@ -490,7 +490,7 @@ rm -f $OPTION_FILE
echo "/* wolftpm options.h" > $OPTION_FILE echo "/* wolftpm options.h" > $OPTION_FILE
echo " * generated from configure options" >> $OPTION_FILE echo " * generated from configure options" >> $OPTION_FILE
echo " *" >> $OPTION_FILE echo " *" >> $OPTION_FILE
echo " * Copyright (C) 2006-2024 wolfSSL Inc." >> $OPTION_FILE echo " * Copyright (C) 2006-2025 wolfSSL Inc." >> $OPTION_FILE
echo " *" >> $OPTION_FILE echo " *" >> $OPTION_FILE
echo " * * This file is part of wolfTPM." >> $OPTION_FILE echo " * * This file is part of wolfTPM." >> $OPTION_FILE
echo " *" >> $OPTION_FILE echo " *" >> $OPTION_FILE

View File

@ -1,6 +1,6 @@
/* activate_credential.c /* activate_credential.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *
@ -183,8 +183,10 @@ int TPM2_ActivateCredential_Example(void* userCtx, int argc, char *argv[])
dataSize = (int)XFREAD((BYTE*)&activCredIn.credentialBlob, 1, dataSize = (int)XFREAD((BYTE*)&activCredIn.credentialBlob, 1,
sizeof(activCredIn.credentialBlob), fp); sizeof(activCredIn.credentialBlob), fp);
if (dataSize > 0) { if (dataSize > 0) {
dataSize += (int)XFREAD((BYTE*)&activCredIn.secret, 1, int secSize = (int)XFREAD((BYTE*)&activCredIn.secret, 1,
sizeof(activCredIn.secret), fp); sizeof(activCredIn.secret), fp);
if (secSize > 0)
dataSize += secSize;
} }
XFCLOSE(fp); XFCLOSE(fp);
} }

View File

@ -1,6 +1,6 @@
/* attestation.h /* attestation.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* certify.c /* certify.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* make_credential.c /* make_credential.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* bench.c /* bench.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* bench.h /* bench.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* boot.h /* boot.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* secret_seal.c /* secret_seal.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* secret_unseal.c /* secret_unseal.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* secure_rot.c /* secure_rot.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* csr.c /* csr.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* csr.h /* csr.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* endorsement.h /* endorsement.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* get_ek_certs.c /* get_ek_certs.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *
@ -90,10 +90,12 @@ static void show_ek_public(const TPM2B_PUBLIC* pub)
pub->publicArea.unique.rsa.size); pub->publicArea.unique.rsa.size);
} }
else if (pub->publicArea.type == TPM_ALG_ECC) { else if (pub->publicArea.type == TPM_ALG_ECC) {
const char* curveName = "NULL"; const char* curveName;
#if !defined(WOLFTPM2_NO_WOLFCRYPT) && defined(HAVE_ECC) #if !defined(WOLFTPM2_NO_WOLFCRYPT) && defined(HAVE_ECC)
curveName = wc_ecc_get_name( curveName = wc_ecc_get_name(
TPM2_GetWolfCurve(pub->publicArea.parameters.eccDetail.curveID)); TPM2_GetWolfCurve(pub->publicArea.parameters.eccDetail.curveID));
#else
curveName = "NULL";
#endif #endif
printf("\tCurveID %s (0x%x), size %d, unique X/Y size %d/%d\n", printf("\tCurveID %s (0x%x), size %d, unique X/Y size %d/%d\n",
curveName, pub->publicArea.parameters.eccDetail.curveID, curveName, pub->publicArea.parameters.eccDetail.curveID,

View File

@ -1,6 +1,6 @@
/* ifx_fw_extract.c /* ifx_fw_extract.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* ifx_fw_update.c /* ifx_fw_update.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* ifx_firmware_update.h /* ifx_firmware_update.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* gpio.h /* gpio.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* gpio_config.c /* gpio_config.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* read.c /* read.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* set.c /* set.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* create_primary.c /* create_primary.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* external_import.c /* external_import.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* keygen.c /* keygen.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* keygen.h /* keygen.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* keyimport.c /* keyimport.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* keyload.c /* keyload.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* flush.c /* flush.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* management.h /* management.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpmclear.c /* tpmclear.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* native_test.c /* native_test.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* native_test.h /* native_test.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* counter.c /* counter.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* extend.c /* extend.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* nvram.h /* nvram.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* policy_nv.c /* policy_nv.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* read.c /* read.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* store.c /* store.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* extend.c /* extend.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *
@ -158,10 +158,11 @@ int TPM2_PCR_Extend_Test(void* userCtx, int argc, char *argv[])
wc_HashInit(&dig, hashType); wc_HashInit(&dig, hashType);
while (!XFEOF(fp)) { while (!XFEOF(fp)) {
len = XFREAD(dataBuffer, 1, sizeof(dataBuffer), fp); len = XFREAD(dataBuffer, 1, sizeof(dataBuffer), fp);
if (len) { if (len > 0) {
wc_HashUpdate(&dig, hashType, dataBuffer, (int)len); wc_HashUpdate(&dig, hashType, dataBuffer, (int)len);
} }
} }
XFCLOSE(fp);
wc_HashFinal(&dig, hashType, hash); wc_HashFinal(&dig, hashType, hash);
XMEMCPY(cmdIn.pcrExtend.digests.digests[0].digest.H, XMEMCPY(cmdIn.pcrExtend.digests.digests[0].digest.H,

View File

@ -1,6 +1,6 @@
/* pcr.h /* pcr.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* policy.c /* policy.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* policy_sign.c /* policy_sign.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* quote.c /* quote.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* quote.h /* quote.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* read.c /* read.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* reset.c /* reset.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* pkcs7.c /* pkcs7.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* pkcs7.h /* pkcs7.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* seal.c /* seal.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* seal.h /* seal.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* unseal.c /* unseal.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *
@ -175,8 +175,8 @@ int TPM2_Unseal_Example(void* userCtx, int argc, char *argv[])
goto exit; goto exit;
} }
} }
printf("Stored unsealed data to file = %s\n", filename);
XFCLOSE(fp); XFCLOSE(fp);
printf("Stored unsealed data to file = %s\n", filename);
} }
#else #else
printf("Unable to store unsealed data to a file. Enable wolfcrypt support.\n"); printf("Unable to store unsealed data to a file. Enable wolfcrypt support.\n");

View File

@ -1,6 +1,6 @@
/* clock_set.c /* clock_set.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* clock_set.h /* clock_set.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* signed_timestamp.c /* signed_timestamp.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* signed_timestamp.h /* signed_timestamp.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tls_client.c /* tls_client.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tls_client.h /* tls_client.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tls_client_notpm.c /* tls_client_notpm.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tls_common.h /* tls_common.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tls_server.c /* tls_server.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tls_server.h /* tls_server.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_test.h /* tpm_test.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_test_keys.c /* tpm_test_keys.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *
@ -217,7 +217,9 @@ int readKeyBlob(const char* filename, WOLFTPM2_KEYBLOB* key)
/* Decode the byte stream into a publicArea structure ready for use */ /* Decode the byte stream into a publicArea structure ready for use */
rc = TPM2_ParsePublic(&key->pub, pubAreaBuffer, rc = TPM2_ParsePublic(&key->pub, pubAreaBuffer,
(word32)sizeof(pubAreaBuffer), &pubAreaSize); (word32)sizeof(pubAreaBuffer), &pubAreaSize);
if (rc != TPM_RC_SUCCESS) return rc; if (rc != TPM_RC_SUCCESS) {
goto exit;
}
#ifdef DEBUG_WOLFTPM #ifdef DEBUG_WOLFTPM
TPM2_PrintPublicArea(&key->pub); TPM2_PrintPublicArea(&key->pub);
#endif #endif

View File

@ -1,6 +1,6 @@
/* tpm_test_keys.h /* tpm_test_keys.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* caps. /* caps.
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* wrap_test.c /* wrap_test.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* wrap_test.h /* wrap_test.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io.c /* tpm_io.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *
@ -82,7 +82,7 @@ static int TPM2_IoCb_SPI(TPM2_CTX* ctx, const byte* txBuf, byte* rxBuf,
word16 xferSz, void* userCtx) word16 xferSz, void* userCtx)
{ {
int ret = TPM_RC_FAILURE; int ret = TPM_RC_FAILURE;
#if defined(__UBOOT__) #if defined(__UBOOT__)
ret = TPM2_IoCb_Uboot_SPI(ctx, txBuf, rxBuf, xferSz, userCtx); ret = TPM2_IoCb_Uboot_SPI(ctx, txBuf, rxBuf, xferSz, userCtx);
#elif defined(__linux__) #elif defined(__linux__)

View File

@ -1,6 +1,6 @@
/* tpm_io.h /* tpm_io.h
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io_atmel.c /* tpm_io_atmel.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io_barebox.c /* tpm_io_barebox.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io_espressif.c /* tpm_io_espressif.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io_infineon.c /* tpm_io_infineon.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io_linux.c /* tpm_io_linux.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io_microchip.c /* tpm_io_microchip.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io_mmio.c /* tpm_io_mmio.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io_qnx.c /* tpm_io_qnx.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io_st.c /* tpm_io_st.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm_io_xilinx.c /* tpm_io_xilinx.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm2.c /* tpm2.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm2_cryptocb.c /* tpm2_cryptocb.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm2_linux.c /* tpm2_linux.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm2_packet.c /* tpm2_packet.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm2_param_enc.c /* tpm2_param_enc.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm2_swtpm.c /* tpm2_swtpm.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm2_tis.c /* tpm2_tis.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm2_winapi.c /* tpm2_winapi.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

View File

@ -1,6 +1,6 @@
/* tpm2_wrap.c /* tpm2_wrap.c
* *
* Copyright (C) 2006-2024 wolfSSL Inc. * Copyright (C) 2006-2025 wolfSSL Inc.
* *
* This file is part of wolfTPM. * This file is part of wolfTPM.
* *

Some files were not shown because too many files have changed in this diff Show More