Skip to content

Commit 9c2ada8

Browse files
committed
Fixes for spelling and debug.
1 parent 0c2b0a4 commit 9c2ada8

5 files changed

Lines changed: 9 additions & 7 deletions

File tree

examples/wrap/caps.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ int TPM2_Wrapper_CapsArgs(void* userCtx, int argc, char *argv[])
130130
TPM2_PCRs_Print();
131131

132132
exit:
133-
/* Only doShutdown=1: Just shut down the TPM */
133+
/* Only doShutdown=1: Just shutdown the TPM */
134134
wolfTPM2_Reset(&dev, 1, 0);
135135

136136
wolfTPM2_Cleanup(&dev);

examples/wrap/wrap_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ int TPM2_Wrapper_TestArgs(void* userCtx, int argc, char *argv[])
10101010
wolfTPM2_UnloadHandle(&dev, &ekKey.handle);
10111011
wolfTPM2_UnloadHandle(&dev, &tpmSession.handle);
10121012

1013-
/* Only doShutdown=1: Just shut down the TPM */
1013+
/* Only doShutdown=1: Just shutdown the TPM */
10141014
wolfTPM2_Reset(&dev, 1, 0);
10151015

10161016
wolfTPM2_Cleanup(&dev);

src/tpm2_linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include <config.h>
3535
#include <tpm-common.h>
3636

37-
/* supresses waring for now */
37+
/* import u-boot function helper to get device */
3838
extern int tcg2_platform_get_tpm2(struct udevice **dev);
3939

4040
/* Use the U-Boot TPM device and TIS layer */

src/tpm2_wrap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5792,7 +5792,7 @@ int wolfTPM2_ChangeHierarchyAuth(WOLFTPM2_DEV* dev, WOLFTPM2_SESSION* session,
57925792
#endif
57935793
} else {
57945794
printf("Error %d setting %s auth! %s\n",
5795-
rc, wolfTPM2_GetRCString(rc), desc);
5795+
rc, desc, wolfTPM2_GetRCString(rc));
57965796
}
57975797
#endif
57985798
/* ensure the random secret is not left in stack */

wolftpm/tpm2_wrap.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2607,6 +2607,7 @@ WOLFTPM_API int wolfTPM2_SetCommand(WOLFTPM2_DEV* dev, TPM_CC commandCode,
26072607
\param doShutdown integer value, non-zero values represent "perform Shutdown"
26082608
26092609
\sa wolfTPM2_Init
2610+
\sa wolfTPM2_Reset
26102611
*/
26112612
WOLFTPM_API int wolfTPM2_Reset(WOLFTPM2_DEV* dev, int doShutdown, int doStartup);
26122613

@@ -2623,6 +2624,7 @@ WOLFTPM_API int wolfTPM2_Reset(WOLFTPM2_DEV* dev, int doShutdown, int doStartup)
26232624
\param doStartup integer value, non-zero values represent "perform Startup after Shutdown"
26242625
26252626
\sa wolfTPM2_Init
2627+
\sa wolfTPM2_Shutdown
26262628
*/
26272629
WOLFTPM_API int wolfTPM2_Shutdown(WOLFTPM2_DEV* dev, int doStartup);
26282630

@@ -3282,7 +3284,7 @@ WOLFTPM_API int wolfTPM2_CSR_Generate(WOLFTPM2_DEV* dev, WOLFTPM2_KEY* key,
32823284

32833285
/*!
32843286
\ingroup wolfTPM2_Wrappers
3285-
\brief Helper to set the platform heirarchy authentication value to random.
3287+
\brief Helper to set the platform hierarchy authentication value to random.
32863288
Setting the platform auth to random value is used to prevent application
32873289
from being able to use platform hierarchy. This is defined in section 10
32883290
of the TCG PC Client Platform specification.
@@ -3301,7 +3303,7 @@ WOLFTPM_API int wolfTPM2_ChangePlatformAuth(WOLFTPM2_DEV* dev, WOLFTPM2_SESSION*
33013303

33023304
/*!
33033305
\ingroup wolfTPM2_Wrappers
3304-
\brief Helper to set the heirarchy authentication value to random.
3306+
\brief Helper to set the hierarchy authentication value to random.
33053307
Setting the platform auth to random value is used to prevent application
33063308
from being able to use platform hierarchy. This is defined in section 10
33073309
of the TCG PC Client Platform specification.
@@ -3312,7 +3314,7 @@ WOLFTPM_API int wolfTPM2_ChangePlatformAuth(WOLFTPM2_DEV* dev, WOLFTPM2_SESSION*
33123314
33133315
\param dev pointer to a TPM2_DEV struct
33143316
\param session the current session, a session is required to protect the new platform auth
3315-
\param authHandle the auth heirarchy (example: TPM_RH_PLATFORM or TPM_RH_LOCKOUT)
3317+
\param authHandle the auth hierarchy (example: TPM_RH_PLATFORM or TPM_RH_LOCKOUT)
33163318
33173319
\sa TPM2_HierarchyChangeAuth
33183320
\sa wolfTPM2_ChangePlatformAuth

0 commit comments

Comments
 (0)