Vadim Bendebury | 889ec83 | 2015-05-26 17:11:06 -0700 | [diff] [blame] | 1 | /* |
| 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 Bendebury | bbd7900 | 2015-05-31 14:44:07 -0700 | [diff] [blame] | 10 | TPMI_YES_NO PCRCapGetAllocation( |
| 11 | UINT32 count, // IN: count of return |
| 12 | TPML_PCR_SELECTION *pcrSelection // OUT: PCR allocation list |
| 13 | ); |
Vadim Bendebury | 889ec83 | 2015-05-26 17:11:06 -0700 | [diff] [blame] | 14 | TPMI_ALG_HASH PCRGetAuthPolicy( |
| 15 | TPMI_DH_PCR handle, // IN: PCR handle |
| 16 | TPM2B_DIGEST *policy // OUT: policy of PCR |
| 17 | ); |
Vadim Bendebury | bbd7900 | 2015-05-31 14:44:07 -0700 | [diff] [blame] | 18 | TPMI_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 | ); |
| 23 | TPMI_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 Bendebury | 889ec83 | 2015-05-26 17:11:06 -0700 | [diff] [blame] | 28 | void PCRGetAuthValue( |
| 29 | TPMI_DH_PCR handle, // IN: PCR handle |
| 30 | TPM2B_AUTH *auth // OUT: authValue of PCR |
| 31 | ); |
Vadim Bendebury | b0d692f | 2015-05-29 22:54:52 -0700 | [diff] [blame] | 32 | void 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 | ); |
| 38 | BOOL PCRIsExtendAllowed( |
| 39 | TPMI_DH_PCR handle // IN: PCR handle to be extended |
| 40 | ); |
| 41 | BOOL PCRIsStateSaved( |
| 42 | TPMI_DH_PCR handle // IN: PCR handle to be extended |
| 43 | ); |
Vadim Bendebury | 62f9d01 | 2015-05-31 15:54:32 -0700 | [diff] [blame] | 44 | void PCRSimStart( |
| 45 | void |
| 46 | ); |
Vadim Bendebury | 889ec83 | 2015-05-26 17:11:06 -0700 | [diff] [blame] | 47 | |
| 48 | #endif // __TPM2_PCR_FP_H |