blob: 3dcaa162e275acb1d3e8d8d68cab9b71e2c6e357 [file] [log] [blame]
Vadim Bendebury56797522015-05-20 10:32:25 -07001// This file was extracted from the TCG Published
2// Trusted Platform Module Library
3// Part 3: Commands
4// Family "2.0"
5// Level 00 Revision 01.16
6// October 30, 2014
7
8#include "InternalRoutines.h"
9#include "PCR_Read_fp.h"
10TPM_RC
11TPM2_PCR_Read(
12 PCR_Read_In *in, // IN: input parameter list
13 PCR_Read_Out *out // OUT: output parameter list
14 )
15{
16// Command Output
17
18 // Call PCR read function. input pcrSelectionIn parameter could be changed
19 // to reflect the actual PCR being returned
20 PCRRead(&in->pcrSelectionIn, &out->pcrValues, &out->pcrUpdateCounter);
21
22 out->pcrSelectionOut = in->pcrSelectionIn;
23
24 return TPM_RC_SUCCESS;
25}