/external/tpm2/ |
D | CommandCodeAttributes.c | 37 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 …]
|
D | PP.c | 45 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 …]
|
D | CommandAudit.c | 77 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 …]
|
D | SessionProcess.c | 210 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 …]
|
D | ExecCommand.c | 52 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 …]
|
D | CommandCodeAttributes_fp.h | 10 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
|
D | PolicyCommandCode.c | 22 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()
|
D | PP_fp.h | 11 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
|
D | CommandAudit_fp.h | 11 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
|
D | PolicyTicket.c | 29 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()
|
D | PolicyDuplicationSelect.c | 24 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()
|
D | SessionProcess_fp.h | 12 TPM_CC commandCode, // IN: commandCode 18 TPM_CC commandCode, // IN: Command Code 27 TPM_CC commandCode, // IN: Command code
|
D | Policy_spt.c | 80 TPM_CC commandCode, // IN: command code in PolicyContextUpdate() argument 97 CryptUpdateDigestInt(&hashState, sizeof(commandCode), &commandCode); in PolicyContextUpdate()
|
D | PolicyPhysicalPresence.c | 16 TPM_CC commandCode = TPM_CC_PolicyPhysicalPresence; in TPM2_PolicyPhysicalPresence() local 33 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyPhysicalPresence()
|
D | PolicyPassword.c | 17 TPM_CC commandCode = TPM_CC_PolicyAuthValue; in TPM2_PolicyPassword() local 34 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyPassword()
|
D | PolicyAuthValue.c | 17 TPM_CC commandCode = TPM_CC_PolicyAuthValue; in TPM2_PolicyAuthValue() local 34 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyAuthValue()
|
D | PolicyNvWritten.c | 23 TPM_CC commandCode = TPM_CC_PolicyNvWritten; in TPM2_PolicyNvWritten() local 56 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyNvWritten()
|
D | PolicyNameHash.c | 24 TPM_CC commandCode = TPM_CC_PolicyNameHash; in TPM2_PolicyNameHash() local 52 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyNameHash()
|
D | PolicyCpHash.c | 24 TPM_CC commandCode = TPM_CC_PolicyCpHash; in TPM2_PolicyCpHash() local 55 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyCpHash()
|
D | PolicyOR.c | 41 TPM_CC commandCode = TPM_CC_PolicyOR; in TPM2_PolicyOR() local 52 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyOR()
|
D | PolicyLocality.c | 29 TPM_CC commandCode = TPM_CC_PolicyLocality; in TPM2_PolicyLocality() local 96 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyLocality()
|
D | PolicyPCR.c | 28 TPM_CC commandCode = TPM_CC_PolicyPCR; in TPM2_PolicyPCR() local 71 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyPCR()
|
D | Entity.c | 30 TPM_CC commandCode // IN: the commmandCode in EntityGetLoadStatus() argument 86 result = ObjectLoadEvict(handle, commandCode); in EntityGetLoadStatus() 121 result = NvIndexIsAccessible(*handle, commandCode); in EntityGetLoadStatus()
|
D | PolicyCounterTimer.c | 27 TPM_CC commandCode = TPM_CC_PolicyCounterTimer; in TPM2_PolicyCounterTimer() local 165 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyCounterTimer()
|
/external/tpm2/generator/ |
D | commands.txt | 9 _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 …]
|