TianoCore EDK2 master
Loading...
Searching...
No Matches
Tpm12CommandLib.h
Go to the documentation of this file.
1
9#ifndef _TPM12_COMMAND_LIB_H_
10#define _TPM12_COMMAND_LIB_H_
11
13
23EFIAPI
26 );
27
35EFIAPI
37 VOID
38 );
39
47EFIAPI
49 VOID
50 );
51
52#pragma pack(1)
53
54typedef struct {
55 UINT16 sizeOfSelect;
56 UINT8 pcrSelect[3];
58
59typedef struct {
60 TPM12_PCR_SELECTION pcrSelection;
61 TPM_LOCALITY_SELECTION localityAtRelease;
62 TPM_COMPOSITE_HASH digestAtRelease;
64
65typedef struct {
67 TPM_NV_INDEX nvIndex;
68 TPM12_PCR_INFO_SHORT pcrInfoRead;
69 TPM12_PCR_INFO_SHORT pcrInfoWrite;
70 TPM_NV_ATTRIBUTES permission;
71 BOOLEAN bReadSTClear;
72 BOOLEAN bWriteSTClear;
73 BOOLEAN bWriteDefine;
74 UINT32 dataSize;
76
77#pragma pack()
78
89EFIAPI
91 IN TPM12_NV_DATA_PUBLIC *PubInfo,
92 IN TPM_ENCAUTH *EncAuth
93 );
94
107EFIAPI
109 IN TPM_NV_INDEX NvIndex,
110 IN UINT32 Offset,
111 IN OUT UINT32 *DataSize,
112 OUT UINT8 *Data
113 );
114
127EFIAPI
129 IN TPM_NV_INDEX NvIndex,
130 IN UINT32 Offset,
131 IN UINT32 DataSize,
132 IN UINT8 *Data
133 );
134
149EFIAPI
151 IN TPM_DIGEST *DigestToExtend,
152 IN TPM_PCRINDEX PcrIndex,
153 OUT TPM_DIGEST *NewPcrValue
154 );
155
168EFIAPI
170 IN TPM_PHYSICAL_PRESENCE PhysicalPresence
171 );
172
183EFIAPI
185 VOID
186 );
187
200EFIAPI
202 OUT TPM_PERMANENT_FLAGS *TpmPermanentFlags
203 );
204
215EFIAPI
217 OUT TPM_STCLEAR_FLAGS *VolatileFlags
218 );
219
220#endif
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
UINT16 TPM_STARTUP_TYPE
Definition: Tpm12.h:53
UINT32 TPM_PCRINDEX
Definition: Tpm12.h:133
UINT32 TPM_NV_INDEX
Definition: Tpm12.h:149
UINT16 TPM_STRUCTURE_TAG
Definition: Tpm12.h:85
UINT8 TPM_LOCALITY_SELECTION
Definition: Tpm12.h:929
UINT16 TPM_PHYSICAL_PRESENCE
Definition: Tpm12.h:69
TPM_AUTHDATA TPM_ENCAUTH
Definition: Tpm12.h:500
EFI_STATUS EFIAPI Tpm12PhysicalPresence(IN TPM_PHYSICAL_PRESENCE PhysicalPresence)
EFI_STATUS EFIAPI Tpm12NvWriteValue(IN TPM_NV_INDEX NvIndex, IN UINT32 Offset, IN UINT32 DataSize, IN UINT8 *Data)
EFI_STATUS EFIAPI Tpm12NvDefineSpace(IN TPM12_NV_DATA_PUBLIC *PubInfo, IN TPM_ENCAUTH *EncAuth)
EFI_STATUS EFIAPI Tpm12SaveState(VOID)
Definition: Tpm12Startup.c:78
EFI_STATUS EFIAPI Tpm12ContinueSelfTest(VOID)
Definition: Tpm12SelfTest.c:27
EFI_STATUS EFIAPI Tpm12Extend(IN TPM_DIGEST *DigestToExtend, IN TPM_PCRINDEX PcrIndex, OUT TPM_DIGEST *NewPcrValue)
Definition: Tpm12Pcr.c:46
EFI_STATUS EFIAPI Tpm12NvReadValue(IN TPM_NV_INDEX NvIndex, IN UINT32 Offset, IN OUT UINT32 *DataSize, OUT UINT8 *Data)
EFI_STATUS EFIAPI Tpm12GetCapabilityFlagVolatile(OUT TPM_STCLEAR_FLAGS *VolatileFlags)
EFI_STATUS EFIAPI Tpm12GetCapabilityFlagPermanent(OUT TPM_PERMANENT_FLAGS *TpmPermanentFlags)
EFI_STATUS EFIAPI Tpm12Startup(IN TPM_STARTUP_TYPE TpmSt)
Definition: Tpm12Startup.c:35
EFI_STATUS EFIAPI Tpm12ForceClear(VOID)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29