@@ -2540,39 +2540,39 @@ WOLFTPM_API int wolfTPM2_SetCommand(WOLFTPM2_DEV* dev, TPM_CC commandCode,
25402540
25412541/*!
25422542 \ingroup wolfTPM2_Wrappers
2543- \brief Helper function to shutdown or reset the TPM
2544- \note If doStartup is set, then TPM2_Startup is performed right after TPM2_Shutdown
2543+ \brief Helper function to shutdown, startup or reset the TPM
2544+ \note The behavior depends on the doStartup and doShutdown flags:
2545+ \note - Both flags set to 1: Performs a full TPM restart (shutdown then startup)
2546+ \note - Only doStartup=1: Just starts up the TPM
2547+ \note - Only doShutdown=1: Just shuts down the TPM
25452548
25462549 \return TPM_RC_SUCCESS: successful
25472550 \return TPM_RC_FAILURE: generic failure (check TPM IO and TPM return code)
25482551 \return BAD_FUNC_ARG: check the provided arguments
25492552
25502553 \param dev pointer to a TPM2_DEV struct
25512554 \param doStartup integer value, non-zero values represent "perform Startup after Shutdown"
2555+ \param doShutdown integer value, non-zero values represent "perform Shutdown"
25522556
25532557 \sa wolfTPM2_Init
25542558*/
2555- WOLFTPM_API int wolfTPM2_Shutdown (WOLFTPM2_DEV * dev , int doStartup );
2559+ WOLFTPM_API int wolfTPM2_Reset (WOLFTPM2_DEV * dev , int doShutdown , int doStartup );
25562560
25572561/*!
25582562 \ingroup wolfTPM2_Wrappers
2559- \brief Helper function to shutdown, startup or reset the TPM
2560- \note The behavior depends on the doStartup and doShutdown flags:
2561- \note - Both flags set to 1: Performs a full TPM restart (shutdown then startup)
2562- \note - Only doStartup=1: Just starts up the TPM
2563- \note - Only doShutdown=1: Just shuts down the TPM
2563+ \brief Helper function to shutdown or reset the TPM
2564+ \note If doStartup is set, then TPM2_Startup is performed right after TPM2_Shutdown
25642565
25652566 \return TPM_RC_SUCCESS: successful
25662567 \return TPM_RC_FAILURE: generic failure (check TPM IO and TPM return code)
25672568 \return BAD_FUNC_ARG: check the provided arguments
25682569
25692570 \param dev pointer to a TPM2_DEV struct
25702571 \param doStartup integer value, non-zero values represent "perform Startup after Shutdown"
2571- \param doShutdown integer value, non-zero values represent "perform Shutdown"
25722572
25732573 \sa wolfTPM2_Init
25742574*/
2575- WOLFTPM_API int wolfTPM2_Reset (WOLFTPM2_DEV * dev , int doShutdown , int doStartup );
2575+ WOLFTPM_API int wolfTPM2_Shutdown (WOLFTPM2_DEV * dev , int doStartup );
25762576
25772577/*!
25782578 \ingroup wolfTPM2_Wrappers
0 commit comments