rev180: Rename PCRSimStart to PCRManufacture

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2023-12-11 15:18:20 -05:00 committed by Stefan Berger
parent 0043f1ba9d
commit 9d71aa4299
3 changed files with 14 additions and 12 deletions

View File

@ -129,7 +129,8 @@ TPM_Manufacture(
return -1;
} // libtpms added end
// default configuration for PCR
PCRSimStart();
PCRManufacture();
// initialize pre-installed hierarchy data
// This should happen after NV is initialized because hierarchy data is
// stored in NV.

View File

@ -238,13 +238,12 @@ PCRGetAuthPolicy(TPMI_DH_PCR handle, // IN: PCR handle
return TPM_ALG_NULL;
}
}
/* 8.7.2.7 PCRSimStart() */
/* This function is used to initialize the policies when a TPM is manufactured. This function would
only be called in a manufacturing environment or in a TPM simulator. */
void
PCRSimStart(
void
)
//*** PCRManufacture()
// This function is used to initialize the policies when a TPM is manufactured.
// This function would only be called in a manufacturing environment or in
// a TPM simulator.
void PCRManufacture(void)
{
UINT32 i;
#if defined NUM_POLICY_PCR_GROUP && NUM_POLICY_PCR_GROUP > 0

View File

@ -122,10 +122,12 @@ TPMI_ALG_HASH
PCRGetAuthPolicy(TPMI_DH_PCR handle, // IN: PCR handle
TPM2B_DIGEST* policy // OUT: policy of PCR
);
void
PCRSimStart(
void
);
//*** PCRManufacture()
// This function is used to initialize the policies when a TPM is manufactured.
// This function would only be called in a manufacturing environment or in
// a TPM simulator.
void PCRManufacture(void);
//*** PcrIsAllocated()
// This function indicates if a PCR number for the particular hash algorithm