blob: 3df9810f4221e6a5b291c383dd39793c8c98705b [file] [log] [blame]
Vadim Bendebury889ec832015-05-26 17:11:06 -07001/*
2 * Copyright 2015 The Chromium OS Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6
7#ifndef __TPM2_PCR_FP_H
8#define __TPM2_PCR_FP_H
9
Vadim Bendeburybbd79002015-05-31 14:44:07 -070010TPMI_YES_NO PCRCapGetAllocation(
11 UINT32 count, // IN: count of return
12 TPML_PCR_SELECTION *pcrSelection // OUT: PCR allocation list
13);
Vadim Bendebury889ec832015-05-26 17:11:06 -070014TPMI_ALG_HASH PCRGetAuthPolicy(
15 TPMI_DH_PCR handle, // IN: PCR handle
16 TPM2B_DIGEST *policy // OUT: policy of PCR
17 );
Vadim Bendeburybbd79002015-05-31 14:44:07 -070018TPMI_YES_NO PCRCapGetHandles(
19 TPMI_DH_PCR handle, // IN: start handle
20 UINT32 count, // IN: count of returned handle
21 TPML_HANDLE *handleList // OUT: list of handle
22);
23TPMI_YES_NO PCRCapGetProperties(
24 TPM_PT_PCR property, // IN: the starting PCR property
25 UINT32 count, // IN: count of returned propertie
26 TPML_TAGGED_PCR_PROPERTY *select // OUT: PCR select
27);
Vadim Bendebury889ec832015-05-26 17:11:06 -070028void PCRGetAuthValue(
29 TPMI_DH_PCR handle, // IN: PCR handle
30 TPM2B_AUTH *auth // OUT: authValue of PCR
31 );
Vadim Bendeburyb0d692f2015-05-29 22:54:52 -070032void PCRExtend(
33 TPMI_DH_PCR handle, // IN: PCR handle to be extended
34 TPMI_ALG_HASH hash, // IN: hash algorithm of PCR
35 UINT32 size, // IN: size of data to be extended
36 BYTE *data // IN: data to be extended
37 );
38BOOL PCRIsExtendAllowed(
39 TPMI_DH_PCR handle // IN: PCR handle to be extended
40 );
41BOOL PCRIsStateSaved(
42 TPMI_DH_PCR handle // IN: PCR handle to be extended
43 );
Vadim Bendebury62f9d012015-05-31 15:54:32 -070044void PCRSimStart(
45 void
46 );
Vadim Bendebury889ec832015-05-26 17:11:06 -070047
48#endif // __TPM2_PCR_FP_H