mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-10 06:55:49 +00:00
rev180: Rename PCRSimStart to PCRManufacture
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
0043f1ba9d
commit
9d71aa4299
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user