Home
last modified time | relevance | path

Searched refs:commandCode (Results 1 – 25 of 40) sorted by relevance

12

/external/tpm2/
DCommandCodeAttributes.c37 TPM_CC commandCode, // IN: command code in CommandAuthRole() argument
44 ATTRIBUTE_TYPE properties = s_commandAttributes[commandCode - TPM_CC_FIRST]; in CommandAuthRole()
50 if(s_commandAttributes[commandCode - TPM_CC_FIRST] & HANDLE_2_USER) in CommandAuthRole()
67 TPM_CC commandCode // IN: command code in CommandIsImplemented() argument
70 if(commandCode < TPM_CC_FIRST || commandCode > TPM_CC_LAST) in CommandIsImplemented()
72 if((s_commandAttributes[commandCode - TPM_CC_FIRST] & IS_IMPLEMENTED)) in CommandIsImplemented()
85 TPM_CC commandCode // IN: command code in CommandGetAttribute() argument
91 if(s_ccAttr[i].commandIndex == (UINT16) commandCode) in CommandGetAttribute()
114 TPM_CC commandCode // IN: commandCode in EncryptSize() argument
117 COMMAND_ATTRIBUTES ca = s_commandAttributes[commandCode - TPM_CC_FIRST]; in EncryptSize()
[all …]
DPP.c45 TPM_CC commandCode // IN: command code in PhysicalPresenceCommandSet() argument
51 pAssert(CommandIsImplemented(commandCode)); in PhysicalPresenceCommandSet()
53 if(commandCode < TPM_CC_PP_FIRST || commandCode > TPM_CC_PP_LAST) in PhysicalPresenceCommandSet()
55 bitPos = commandCode - TPM_CC_PP_FIRST; in PhysicalPresenceCommandSet()
68 TPM_CC commandCode // IN: command code in PhysicalPresenceCommandClear() argument
74 pAssert(CommandIsImplemented(commandCode)); in PhysicalPresenceCommandClear()
76 if(commandCode < TPM_CC_PP_FIRST || commandCode > TPM_CC_PP_LAST) in PhysicalPresenceCommandClear()
79 if(commandCode == TPM_CC_PP_Commands) in PhysicalPresenceCommandClear()
81 bitPos = commandCode - TPM_CC_PP_FIRST; in PhysicalPresenceCommandClear()
101 TPM_CC commandCode // IN: command code in PhysicalPresenceIsRequired() argument
[all …]
DCommandAudit.c77 TPM_CC commandCode // IN: command code in CommandAuditSet() argument
82 if(CommandIsImplemented(commandCode)) in CommandAuditSet()
85 if(commandCode != TPM_CC_Shutdown) in CommandAuditSet()
87 bitPos = commandCode - TPM_CC_FIRST; in CommandAuditSet()
118 TPM_CC commandCode // IN: command code in CommandAuditClear() argument
123 if(CommandIsImplemented(commandCode)) in CommandAuditClear()
127 if(commandCode != TPM_CC_SetCommandCodeAuditStatus) in CommandAuditClear()
129 bitPos = commandCode - TPM_CC_FIRST; in CommandAuditClear()
154 TPM_CC commandCode // IN: command code in CommandAuditIsRequired() argument
158 bitPos = commandCode - TPM_CC_FIRST; in CommandAuditIsRequired()
[all …]
DSessionProcess.c210 TPM_CC commandCode, // IN: command code in IsPolicySessionRequired() argument
214 AUTH_ROLE role = CommandAuthRole(commandCode, sessionIndex); in IsPolicySessionRequired()
261 TPM_CC commandCode, // IN: commandCode in IsAuthValueAvailable() argument
269 pAssert(!IsPolicySessionRequired(commandCode, sessionIndex)); in IsAuthValueAvailable()
316 || (CommandAuthRole(commandCode, sessionIndex) == AUTH_ADMIN in IsAuthValueAvailable()
327 if(IsWriteOperation(commandCode)) in IsAuthValueAvailable()
367 TPM_CC commandCode, // IN: commandCode in IsAuthPolicyAvailable() argument
425 if(IsPolicySessionRequired(commandCode, sessionIndex)) in IsAuthPolicyAvailable()
429 else if(IsWriteOperation(commandCode)) in IsAuthPolicyAvailable()
465 TPM_CC commandCode, // IN: command code in ComputeCpHash() argument
[all …]
DExecCommand.c52 TPM_CC commandCode = 0; in ExecuteCommand() local
159 result = TPM_CC_Unmarshal(&commandCode, &buffer, &size); in ExecuteCommand()
163 if(!CommandIsImplemented(commandCode)) in ExecuteCommand()
171 if(IsFieldUgradeMode() && (commandCode != TPM_CC_FieldUpgradeData)) in ExecuteCommand()
181 if(( !TPMIsStarted() && commandCode != TPM_CC_Startup) in ExecuteCommand()
182 || (TPMIsStarted() && commandCode == TPM_CC_Startup)) in ExecuteCommand()
189 result = ParseHandleBuffer(commandCode, &buffer, &size, handles, &handleNum); in ExecuteCommand()
199 result = EntityGetLoadStatus(&handles[i], commandCode); in ExecuteCommand()
240 result = ParseSessionBuffer(commandCode, in ExecuteCommand()
259 result = CheckAuthNoSession(commandCode, handleNum, handles, in ExecuteCommand()
[all …]
DCommandCodeAttributes_fp.h10 AUTH_ROLE CommandAuthRole(TPM_CC commandCode, // IN: command code
14 TPM_CC commandCode, // IN: start command code
18 BOOL CommandIsImplemented(TPM_CC commandCode // IN: command code
20 int DecryptSize(TPM_CC commandCode // IN: commandCode
22 int EncryptSize(TPM_CC commandCode // IN: commandCode
26 BOOL IsSessionAllowed(TPM_CC commandCode // IN: the command to be checked
DPolicyCommandCode.c22 TPM_CC commandCode = TPM_CC_PolicyCommandCode; in TPM2_PolicyCommandCode() local
30 if(session->commandCode != 0 && session->commandCode != in->code) in TPM2_PolicyCommandCode()
45 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyCommandCode()
54 session->commandCode = in->code; in TPM2_PolicyCommandCode()
DPP_fp.h11 TPM_CC commandCode, // IN: start command code
15 void PhysicalPresenceCommandClear(TPM_CC commandCode // IN: command code
17 void PhysicalPresenceCommandSet(TPM_CC commandCode // IN: command code
19 BOOL PhysicalPresenceIsRequired(TPM_CC commandCode // IN: command code
DCommandAudit_fp.h11 TPM_CC commandCode, // IN: start command code
15 BOOL CommandAuditClear(TPM_CC commandCode // IN: command code
19 BOOL CommandAuditIsRequired(TPM_CC commandCode // IN: command code
22 BOOL CommandAuditSet(TPM_CC commandCode // IN: command code
DPolicyTicket.c29 TPM_CC commandCode = TPM_CC_PolicySecret; in TPM2_PolicyTicket() local
75 commandCode = TPM_CC_PolicySigned; in TPM2_PolicyTicket()
77 commandCode = TPM_CC_PolicySecret; in TPM2_PolicyTicket()
84 PolicyContextUpdate(commandCode, &in->authName, &in->policyRef, in TPM2_PolicyTicket()
DPolicyDuplicationSelect.c24 TPM_CC commandCode = TPM_CC_PolicyDuplicationSelect; in TPM2_PolicyDuplicationSelect() local
36 if(session->commandCode != 0) in TPM2_PolicyDuplicationSelect()
63 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyDuplicationSelect()
82 session->commandCode = TPM_CC_Duplicate; in TPM2_PolicyDuplicationSelect()
DSessionProcess_fp.h12 TPM_CC commandCode, // IN: commandCode
18 TPM_CC commandCode, // IN: Command Code
27 TPM_CC commandCode, // IN: Command code
DPolicy_spt.c80 TPM_CC commandCode, // IN: command code in PolicyContextUpdate() argument
97 CryptUpdateDigestInt(&hashState, sizeof(commandCode), &commandCode); in PolicyContextUpdate()
DPolicyPhysicalPresence.c16 TPM_CC commandCode = TPM_CC_PolicyPhysicalPresence; in TPM2_PolicyPhysicalPresence() local
33 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyPhysicalPresence()
DPolicyPassword.c17 TPM_CC commandCode = TPM_CC_PolicyAuthValue; in TPM2_PolicyPassword() local
34 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyPassword()
DPolicyAuthValue.c17 TPM_CC commandCode = TPM_CC_PolicyAuthValue; in TPM2_PolicyAuthValue() local
34 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyAuthValue()
DPolicyNvWritten.c23 TPM_CC commandCode = TPM_CC_PolicyNvWritten; in TPM2_PolicyNvWritten() local
56 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyNvWritten()
DPolicyNameHash.c24 TPM_CC commandCode = TPM_CC_PolicyNameHash; in TPM2_PolicyNameHash() local
52 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyNameHash()
DPolicyCpHash.c24 TPM_CC commandCode = TPM_CC_PolicyCpHash; in TPM2_PolicyCpHash() local
55 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyCpHash()
DPolicyOR.c41 TPM_CC commandCode = TPM_CC_PolicyOR; in TPM2_PolicyOR() local
52 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyOR()
DPolicyLocality.c29 TPM_CC commandCode = TPM_CC_PolicyLocality; in TPM2_PolicyLocality() local
96 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyLocality()
DPolicyPCR.c28 TPM_CC commandCode = TPM_CC_PolicyPCR; in TPM2_PolicyPCR() local
71 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyPCR()
DEntity.c30 TPM_CC commandCode // IN: the commmandCode in EntityGetLoadStatus() argument
86 result = ObjectLoadEvict(handle, commandCode); in EntityGetLoadStatus()
121 result = NvIndexIsAccessible(*handle, commandCode); in EntityGetLoadStatus()
DPolicyCounterTimer.c27 TPM_CC commandCode = TPM_CC_PolicyCounterTimer; in TPM2_PolicyCounterTimer() local
165 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyCounterTimer()
/external/tpm2/generator/
Dcommands.txt9 _NAME commandCode
28 _NAME commandCode
47 _NAME commandCode
66 _NAME commandCode
88 _NAME commandCode
109 _NAME commandCode
152 _NAME commandCode
171 _NAME commandCode
217 _NAME commandCode
248 _NAME commandCode
[all …]

12