TianoCore EDK2 master
Loading...
Searching...
No Matches
Tpm2CommandLib.h
Go to the documentation of this file.
1
9#ifndef _TPM2_COMMAND_LIB_H_
10#define _TPM2_COMMAND_LIB_H_
11
13
27EFIAPI
29 IN TPMI_ALG_HASH HashAlg,
30 OUT TPMI_DH_OBJECT *SequenceHandle
31 );
32
45EFIAPI
47 IN TPMI_DH_OBJECT SequenceHandle,
48 IN TPM2B_MAX_BUFFER *Buffer
49 );
50
66EFIAPI
68 IN TPMI_DH_PCR PcrHandle,
69 IN TPMI_DH_OBJECT SequenceHandle,
70 IN TPM2B_MAX_BUFFER *Buffer,
71 OUT TPML_DIGEST_VALUES *Results
72 );
73
85EFIAPI
87 IN TPMI_DH_OBJECT SequenceHandle,
88 IN TPM2B_MAX_BUFFER *Buffer,
89 OUT TPM2B_DIGEST *Result
90 );
91
101EFIAPI
103 IN TPM_SU StartupType
104 );
105
115EFIAPI
117 IN TPM_SU ShutdownType
118 );
119
132EFIAPI
134 IN TPMI_YES_NO FullTest
135 );
136
150EFIAPI
152 IN TPMI_RH_HIERARCHY_AUTH AuthHandle,
153 IN TPMS_AUTH_COMMAND *AuthSession,
154 IN TPM2B_DIGEST *AuthPolicy,
155 IN TPMI_ALG_HASH HashAlg
156 );
157
168EFIAPI
169Tpm2Clear (
170 IN TPMI_RH_CLEAR AuthHandle,
171 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL
172 );
173
186EFIAPI
188 IN TPMI_RH_CLEAR AuthHandle,
189 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL,
190 IN TPMI_YES_NO Disable
191 );
192
205EFIAPI
207 IN TPMI_RH_HIERARCHY_AUTH AuthHandle,
208 IN TPMS_AUTH_COMMAND *AuthSession,
209 IN TPM2B_AUTH *NewAuth
210 );
211
223EFIAPI
225 IN TPMI_RH_PLATFORM AuthHandle,
226 IN TPMS_AUTH_COMMAND *AuthSession
227 );
228
240EFIAPI
242 IN TPMI_RH_PLATFORM AuthHandle,
243 IN TPMS_AUTH_COMMAND *AuthSession
244 );
245
259EFIAPI
261 IN TPMI_RH_HIERARCHY AuthHandle,
262 IN TPMS_AUTH_COMMAND *AuthSession,
263 IN TPMI_RH_HIERARCHY Hierarchy,
264 IN TPMI_YES_NO State
265 );
266
278EFIAPI
280 IN TPMI_RH_LOCKOUT LockHandle,
281 IN TPMS_AUTH_COMMAND *AuthSession
282 );
283
298EFIAPI
300 IN TPMI_RH_LOCKOUT LockHandle,
301 IN TPMS_AUTH_COMMAND *AuthSession,
302 IN UINT32 NewMaxTries,
303 IN UINT32 NewRecoveryTime,
304 IN UINT32 LockoutRecovery
305 );
306
318EFIAPI
320 IN TPMI_RH_NV_INDEX NvIndex,
321 OUT TPM2B_NV_PUBLIC *NvPublic,
322 OUT TPM2B_NAME *NvName
323 );
324
340EFIAPI
342 IN TPMI_RH_PROVISION AuthHandle,
343 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL,
344 IN TPM2B_AUTH *Auth,
345 IN TPM2B_NV_PUBLIC *NvPublic
346 );
347
360EFIAPI
362 IN TPMI_RH_PROVISION AuthHandle,
363 IN TPMI_RH_NV_INDEX NvIndex,
364 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL
365 );
366
382EFIAPI
384 IN TPMI_RH_NV_AUTH AuthHandle,
385 IN TPMI_RH_NV_INDEX NvIndex,
386 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL,
387 IN UINT16 Size,
388 IN UINT16 Offset,
389 IN OUT TPM2B_MAX_BUFFER *OutData
390 );
391
406EFIAPI
408 IN TPMI_RH_NV_AUTH AuthHandle,
409 IN TPMI_RH_NV_INDEX NvIndex,
410 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL,
411 IN TPM2B_MAX_BUFFER *InData,
412 IN UINT16 Offset
413 );
414
427EFIAPI
429 IN TPMI_RH_NV_AUTH AuthHandle,
430 IN TPMI_RH_NV_INDEX NvIndex,
431 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL
432 );
433
446EFIAPI
448 IN TPMI_RH_NV_AUTH AuthHandle,
449 IN TPMI_RH_NV_INDEX NvIndex,
450 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL
451 );
452
464EFIAPI
466 IN TPMI_RH_PROVISION AuthHandle,
467 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL
468 );
469
483EFIAPI
485 IN TPMI_RH_NV_AUTH AuthHandle,
486 IN TPMI_RH_NV_INDEX NvIndex,
487 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL,
488 IN TPM2B_MAX_BUFFER *InData
489 );
490
503EFIAPI
505 IN TPMI_DH_PCR PcrHandle,
506 IN TPML_DIGEST_VALUES *Digests
507 );
508
525EFIAPI
527 IN TPMI_DH_PCR PcrHandle,
528 IN TPM2B_EVENT *EventData,
529 OUT TPML_DIGEST_VALUES *Digests
530 );
531
544EFIAPI
546 IN TPML_PCR_SELECTION *PcrSelectionIn,
547 OUT UINT32 *PcrUpdateCounter,
548 OUT TPML_PCR_SELECTION *PcrSelectionOut,
549 OUT TPML_DIGEST *PcrValues
550 );
551
567EFIAPI
569 IN TPMI_RH_PLATFORM AuthHandle,
570 IN TPMS_AUTH_COMMAND *AuthSession,
571 IN TPML_PCR_SELECTION *PcrAllocation,
572 OUT TPMI_YES_NO *AllocationSuccess,
573 OUT UINT32 *MaxPCR,
574 OUT UINT32 *SizeNeeded,
575 OUT UINT32 *SizeAvailable
576 );
577
588EFIAPI
590 IN TPM2B_AUTH *PlatformAuth OPTIONAL,
591 IN UINT32 SupportedPCRBanks,
592 IN UINT32 PCRBanks
593 );
594
621EFIAPI
623 IN TPM_CAP Capability,
624 IN UINT32 Property,
625 IN UINT32 PropertyCount,
626 OUT TPMI_YES_NO *MoreData,
627 OUT TPMS_CAPABILITY_DATA *CapabilityData
628 );
629
641EFIAPI
643 OUT CHAR8 *Family
644 );
645
657EFIAPI
659 OUT UINT32 *ManufactureId
660 );
661
674EFIAPI
676 OUT UINT32 *FirmwareVersion1,
677 OUT UINT32 *FirmwareVersion2
678 );
679
692EFIAPI
694 OUT UINT32 *MaxCommandSize,
695 OUT UINT32 *MaxResponseSize
696 );
697
710EFIAPI
712 OUT TPML_ALG_PROPERTY *AlgList
713 );
714
726EFIAPI
728 OUT UINT32 *LockoutCounter
729 );
730
742EFIAPI
744 OUT UINT32 *LockoutInterval
745 );
746
759EFIAPI
761 OUT UINT32 *InputBufferSize
762 );
763
775EFIAPI
778 );
779
792EFIAPI
794 OUT UINT32 *TpmHashAlgorithmBitmap,
795 OUT UINT32 *ActivePcrBanks
796 );
797
809EFIAPI
811 OUT UINT32 *AlgorithmSet
812 );
813
824EFIAPI
826 IN TPM_CC Command,
827 OUT BOOLEAN *IsCmdImpl
828 );
829
839EFIAPI
841 IN TPMT_PUBLIC_PARMS *Parameters
842 );
843
857EFIAPI
859 IN TPMI_RH_PLATFORM AuthHandle,
860 IN TPMS_AUTH_COMMAND *AuthSession,
861 IN UINT32 AlgorithmSet
862 );
863
882EFIAPI
884 IN TPMI_DH_OBJECT TpmKey,
885 IN TPMI_DH_ENTITY Bind,
886 IN TPM2B_NONCE *NonceCaller,
888 IN TPM_SE SessionType,
889 IN TPMT_SYM_DEF *Symmetric,
890 IN TPMI_ALG_HASH AuthHash,
891 OUT TPMI_SH_AUTH_SESSION *SessionHandle,
892 OUT TPM2B_NONCE *NonceTPM
893 );
894
904EFIAPI
906 IN TPMI_DH_CONTEXT FlushHandle
907 );
908
928EFIAPI
930 IN TPMI_DH_ENTITY AuthHandle,
931 IN TPMI_SH_POLICY PolicySession,
932 IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL,
933 IN TPM2B_NONCE *NonceTPM,
934 IN TPM2B_DIGEST *CpHashA,
935 IN TPM2B_NONCE *PolicyRef,
936 IN INT32 Expiration,
937 OUT TPM2B_TIMEOUT *Timeout,
938 OUT TPMT_TK_AUTH *PolicyTicket
939 );
940
954EFIAPI
956 IN TPMI_SH_POLICY PolicySession,
957 IN TPML_DIGEST *HashList
958 );
959
970EFIAPI
972 IN TPMI_SH_POLICY PolicySession,
973 IN TPM_CC Code
974 );
975
987EFIAPI
989 IN TPMI_SH_POLICY PolicySession,
990 OUT TPM2B_DIGEST *PolicyHash
991 );
992
1005EFIAPI
1007 IN TPMI_DH_OBJECT ObjectHandle,
1008 OUT TPM2B_PUBLIC *OutPublic,
1009 OUT TPM2B_NAME *Name,
1010 OUT TPM2B_NAME *QualifiedName
1011 );
1012
1013//
1014// Help function
1015//
1016
1025UINT32
1026EFIAPI
1028 IN TPMS_AUTH_COMMAND *AuthSessionIn OPTIONAL,
1029 OUT UINT8 *AuthSessionOut
1030 );
1031
1040UINT32
1041EFIAPI
1043 IN UINT8 *AuthSessionIn,
1044 OUT TPMS_AUTH_RESPONSE *AuthSessionOut OPTIONAL
1045 );
1046
1054UINT16
1055EFIAPI
1057 IN TPMI_ALG_HASH HashAlgo
1058 );
1059
1067UINT32
1068EFIAPI
1070 IN TPMI_ALG_HASH HashAlgo
1071 );
1072
1082BOOLEAN
1083EFIAPI
1085 IN TPMI_ALG_HASH HashAlg,
1086 IN UINT32 HashAlgorithmMask
1087 );
1088
1098VOID *
1099EFIAPI
1101 IN OUT VOID *Buffer,
1102 IN TPML_DIGEST_VALUES *DigestList,
1103 IN UINT32 HashAlgorithmMask
1104 );
1105
1113UINT32
1114EFIAPI
1116 IN TPML_DIGEST_VALUES *DigestList
1117 );
1118
1130EFIAPI
1132 IN TPMI_ALG_HASH HashAlg,
1133 IN TPML_DIGEST_VALUES *DigestList,
1134 OUT VOID *Digest
1135 );
1136
1148EFIAPI
1150 IN TPMI_DH_PCR PcrHandle,
1151 OUT TPML_DIGEST *HashList
1152 );
1153
1154#endif
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI Tpm2ChangeEPS(IN TPMI_RH_PLATFORM AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession)
UINT16 EFIAPI GetHashSizeFromAlgo(IN TPMI_ALG_HASH HashAlgo)
Definition: TdTcg2Dxe.c:152
EFI_STATUS EFIAPI Tpm2DictionaryAttackParameters(IN TPMI_RH_LOCKOUT LockHandle, IN TPMS_AUTH_COMMAND *AuthSession, IN UINT32 NewMaxTries, IN UINT32 NewRecoveryTime, IN UINT32 LockoutRecovery)
EFI_STATUS EFIAPI Tpm2Clear(IN TPMI_RH_CLEAR AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL)
EFI_STATUS EFIAPI Tpm2HierarchyChangeAuth(IN TPMI_RH_HIERARCHY_AUTH AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession, IN TPM2B_AUTH *NewAuth)
UINT32 EFIAPI GetHashMaskFromAlgo(IN TPMI_ALG_HASH HashAlgo)
Definition: TdTcg2Dxe.c:175
EFI_STATUS EFIAPI Tpm2NvDefineSpace(IN TPMI_RH_PROVISION AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN TPM2B_AUTH *Auth, IN TPM2B_NV_PUBLIC *NvPublic)
BOOLEAN EFIAPI IsHashAlgSupportedInHashAlgorithmMask(IN TPMI_ALG_HASH HashAlg, IN UINT32 HashAlgorithmMask)
Definition: Tpm2Help.c:208
EFI_STATUS EFIAPI Tpm2NvGlobalWriteLock(IN TPMI_RH_PROVISION AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL)
EFI_STATUS EFIAPI Tpm2NvWriteLock(IN TPMI_RH_NV_AUTH AuthHandle, IN TPMI_RH_NV_INDEX NvIndex, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL)
EFI_STATUS EFIAPI Tpm2GetCapabilitySupportedAndActivePcrs(OUT UINT32 *TpmHashAlgorithmBitmap, OUT UINT32 *ActivePcrBanks)
EFI_STATUS EFIAPI Tpm2GetCapabilitySupportedAlg(OUT TPML_ALG_PROPERTY *AlgList)
EFI_STATUS EFIAPI Tpm2HierarchyControl(IN TPMI_RH_HIERARCHY AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession, IN TPMI_RH_HIERARCHY Hierarchy, IN TPMI_YES_NO State)
EFI_STATUS EFIAPI Tpm2PcrEvent(IN TPMI_DH_PCR PcrHandle, IN TPM2B_EVENT *EventData, OUT TPML_DIGEST_VALUES *Digests)
EFI_STATUS EFIAPI Tpm2GetCapabilityAlgorithmSet(OUT UINT32 *AlgorithmSet)
EFI_STATUS EFIAPI Tpm2ReadPublic(IN TPMI_DH_OBJECT ObjectHandle, OUT TPM2B_PUBLIC *OutPublic, OUT TPM2B_NAME *Name, OUT TPM2B_NAME *QualifiedName)
Definition: Tpm2Object.c:45
EFI_STATUS EFIAPI Tpm2SelfTest(IN TPMI_YES_NO FullTest)
Definition: Tpm2Test.c:42
EFI_STATUS EFIAPI Tpm2GetCapabilityIsCommandImplemented(IN TPM_CC Command, OUT BOOLEAN *IsCmdImpl)
EFI_STATUS EFIAPI Tpm2GetCapability(IN TPM_CAP Capability, IN UINT32 Property, IN UINT32 PropertyCount, OUT TPMI_YES_NO *MoreData, OUT TPMS_CAPABILITY_DATA *CapabilityData)
EFI_STATUS EFIAPI Tpm2PolicyOR(IN TPMI_SH_POLICY PolicySession, IN TPML_DIGEST *HashList)
UINT32 EFIAPI CopyAuthSessionResponse(IN UINT8 *AuthSessionIn, OUT TPMS_AUTH_RESPONSE *AuthSessionOut OPTIONAL)
Definition: Tpm2Help.c:154
EFI_STATUS EFIAPI Tpm2PolicyCommandCode(IN TPMI_SH_POLICY PolicySession, IN TPM_CC Code)
VOID *EFIAPI CopyDigestListToBuffer(IN OUT VOID *Buffer, IN TPML_DIGEST_VALUES *DigestList, IN UINT32 HashAlgorithmMask)
Definition: TdTcg2Dxe.c:201
EFI_STATUS EFIAPI Tpm2HashSequenceStart(IN TPMI_ALG_HASH HashAlg, OUT TPMI_DH_OBJECT *SequenceHandle)
Definition: Tpm2Sequences.c:93
EFI_STATUS EFIAPI Tpm2SetAlgorithmSet(IN TPMI_RH_PLATFORM AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession, IN UINT32 AlgorithmSet)
UINT32 EFIAPI CopyAuthSessionCommand(IN TPMS_AUTH_COMMAND *AuthSessionIn OPTIONAL, OUT UINT8 *AuthSessionOut)
Definition: Tpm2Help.c:88
EFI_STATUS EFIAPI Tpm2DictionaryAttackLockReset(IN TPMI_RH_LOCKOUT LockHandle, IN TPMS_AUTH_COMMAND *AuthSession)
EFI_STATUS EFIAPI Tpm2GetCapabilityLockoutInterval(OUT UINT32 *LockoutInterval)
EFI_STATUS EFIAPI Tpm2GetCapabilityFamily(OUT CHAR8 *Family)
EFI_STATUS EFIAPI Tpm2PcrAllocate(IN TPMI_RH_PLATFORM AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession, IN TPML_PCR_SELECTION *PcrAllocation, OUT TPMI_YES_NO *AllocationSuccess, OUT UINT32 *MaxPCR, OUT UINT32 *SizeNeeded, OUT UINT32 *SizeAvailable)
EFI_STATUS EFIAPI Tpm2SetPrimaryPolicy(IN TPMI_RH_HIERARCHY_AUTH AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession, IN TPM2B_DIGEST *AuthPolicy, IN TPMI_ALG_HASH HashAlg)
EFI_STATUS EFIAPI Tpm2NvRead(IN TPMI_RH_NV_AUTH AuthHandle, IN TPMI_RH_NV_INDEX NvIndex, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN UINT16 Size, IN UINT16 Offset, IN OUT TPM2B_MAX_BUFFER *OutData)
EFI_STATUS EFIAPI Tpm2GetCapabilityFirmwareVersion(OUT UINT32 *FirmwareVersion1, OUT UINT32 *FirmwareVersion2)
EFI_STATUS EFIAPI Tpm2GetCapabilityMaxCommandResponseSize(OUT UINT32 *MaxCommandSize, OUT UINT32 *MaxResponseSize)
EFI_STATUS EFIAPI Tpm2NvExtend(IN TPMI_RH_NV_AUTH AuthHandle, IN TPMI_RH_NV_INDEX NvIndex, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN TPM2B_MAX_BUFFER *InData)
EFI_STATUS EFIAPI Tpm2NvReadLock(IN TPMI_RH_NV_AUTH AuthHandle, IN TPMI_RH_NV_INDEX NvIndex, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL)
EFI_STATUS EFIAPI Tpm2FlushContext(IN TPMI_DH_CONTEXT FlushHandle)
Definition: Tpm2Context.c:39
EFI_STATUS EFIAPI Tpm2GetCapabilityManufactureID(OUT UINT32 *ManufactureId)
EFI_STATUS EFIAPI Tpm2StartAuthSession(IN TPMI_DH_OBJECT TpmKey, IN TPMI_DH_ENTITY Bind, IN TPM2B_NONCE *NonceCaller, IN TPM2B_ENCRYPTED_SECRET *Salt, IN TPM_SE SessionType, IN TPMT_SYM_DEF *Symmetric, IN TPMI_ALG_HASH AuthHash, OUT TPMI_SH_AUTH_SESSION *SessionHandle, OUT TPM2B_NONCE *NonceTPM)
Definition: Tpm2Session.c:56
EFI_STATUS EFIAPI Tpm2PolicySecret(IN TPMI_DH_ENTITY AuthHandle, IN TPMI_SH_POLICY PolicySession, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN TPM2B_NONCE *NonceTPM, IN TPM2B_DIGEST *CpHashA, IN TPM2B_NONCE *PolicyRef, IN INT32 Expiration, OUT TPM2B_TIMEOUT *Timeout, OUT TPMT_TK_AUTH *PolicyTicket)
EFI_STATUS EFIAPI Tpm2Startup(IN TPM_SU StartupType)
Definition: Tpm2Startup.c:49
EFI_STATUS EFIAPI Tpm2TestParms(IN TPMT_PUBLIC_PARMS *Parameters)
EFI_STATUS EFIAPI Tpm2PcrAllocateBanks(IN TPM2B_AUTH *PlatformAuth OPTIONAL, IN UINT32 SupportedPCRBanks, IN UINT32 PCRBanks)
EFI_STATUS EFIAPI Tpm2ClearControl(IN TPMI_RH_CLEAR AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN TPMI_YES_NO Disable)
EFI_STATUS EFIAPI Tpm2PolicyGetDigest(IN TPMI_SH_POLICY PolicySession, OUT TPM2B_DIGEST *PolicyHash)
EFI_STATUS EFIAPI Tpm2SequenceComplete(IN TPMI_DH_OBJECT SequenceHandle, IN TPM2B_MAX_BUFFER *Buffer, OUT TPM2B_DIGEST *Result)
EFI_STATUS EFIAPI Tpm2Shutdown(IN TPM_SU ShutdownType)
Definition: Tpm2Startup.c:95
EFI_STATUS EFIAPI Tpm2PcrRead(IN TPML_PCR_SELECTION *PcrSelectionIn, OUT UINT32 *PcrUpdateCounter, OUT TPML_PCR_SELECTION *PcrSelectionOut, OUT TPML_DIGEST *PcrValues)
EFI_STATUS EFIAPI Tpm2EventSequenceComplete(IN TPMI_DH_PCR PcrHandle, IN TPMI_DH_OBJECT SequenceHandle, IN TPM2B_MAX_BUFFER *Buffer, OUT TPML_DIGEST_VALUES *Results)
EFI_STATUS EFIAPI Tpm2SequenceUpdate(IN TPMI_DH_OBJECT SequenceHandle, IN TPM2B_MAX_BUFFER *Buffer)
UINT32 EFIAPI GetDigestListSize(IN TPML_DIGEST_VALUES *DigestList)
Definition: Tpm2Help.c:302
EFI_STATUS EFIAPI Tpm2PcrExtend(IN TPMI_DH_PCR PcrHandle, IN TPML_DIGEST_VALUES *Digests)
Definition: Tpm2Integrity.c:92
EFI_STATUS EFIAPI Tpm2NvUndefineSpace(IN TPMI_RH_PROVISION AuthHandle, IN TPMI_RH_NV_INDEX NvIndex, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL)
EFI_STATUS EFIAPI Tpm2PcrReadForActiveBank(IN TPMI_DH_PCR PcrHandle, OUT TPML_DIGEST *HashList)
EFI_STATUS EFIAPI Tpm2GetCapabilityInputBufferSize(OUT UINT32 *InputBufferSize)
EFI_STATUS EFIAPI Tpm2NvReadPublic(IN TPMI_RH_NV_INDEX NvIndex, OUT TPM2B_NV_PUBLIC *NvPublic, OUT TPM2B_NAME *NvName)
EFI_STATUS EFIAPI Tpm2GetCapabilityPcrs(OUT TPML_PCR_SELECTION *Pcrs)
EFI_STATUS EFIAPI Tpm2NvWrite(IN TPMI_RH_NV_AUTH AuthHandle, IN TPMI_RH_NV_INDEX NvIndex, IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN TPM2B_MAX_BUFFER *InData, IN UINT16 Offset)
EFI_STATUS EFIAPI Tpm2ChangePPS(IN TPMI_RH_PLATFORM AuthHandle, IN TPMS_AUTH_COMMAND *AuthSession)
EFI_STATUS EFIAPI GetDigestFromDigestList(IN TPMI_ALG_HASH HashAlg, IN TPML_DIGEST_VALUES *DigestList, OUT VOID *Digest)
Definition: Tpm2Help.c:331
EFI_STATUS EFIAPI Tpm2GetCapabilityLockoutCounter(OUT UINT32 *LockoutCounter)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29