/external/tpm2-tss/test/integration/ |
D | esys-policy-template-opt.int.c | 37 TPM2B_DIGEST *policyDigest; in cmp_policy_digest() local 42 ESYS_TR_NONE, ESYS_TR_NONE, &policyDigest); in cmp_policy_digest() 45 LOGBLOB_DEBUG(&policyDigest->buffer[0], policyDigest->size, in cmp_policy_digest() 48 if (policyDigest->size != 20 in cmp_policy_digest() 49 || memcmp(&policyDigest->buffer[0], &expected_digest->buffer[0], in cmp_policy_digest() 50 policyDigest->size)) { in cmp_policy_digest() 51 free(policyDigest); in cmp_policy_digest() 56 free(policyDigest); in cmp_policy_digest()
|
D | esys-policy-physical-presence-opt.int.c | 37 TPM2B_DIGEST *policyDigest; in cmp_policy_digest() local 42 ESYS_TR_NONE, ESYS_TR_NONE, &policyDigest); in cmp_policy_digest() 45 LOGBLOB_DEBUG(&policyDigest->buffer[0], policyDigest->size, in cmp_policy_digest() 48 if (policyDigest->size != 20 in cmp_policy_digest() 49 || memcmp(&policyDigest->buffer[0], &expected_digest->buffer[0], in cmp_policy_digest() 50 policyDigest->size)) { in cmp_policy_digest() 51 free(policyDigest); in cmp_policy_digest() 56 free(policyDigest); in cmp_policy_digest()
|
D | esys-policy-authorize-nv-opt.int.c | 37 TPM2B_DIGEST *policyDigest; in cmp_policy_digest() local 42 ESYS_TR_NONE, ESYS_TR_NONE, &policyDigest); in cmp_policy_digest() 45 LOGBLOB_DEBUG(&policyDigest->buffer[0], policyDigest->size, in cmp_policy_digest() 48 if (policyDigest->size != 20 in cmp_policy_digest() 49 || memcmp(&policyDigest->buffer[0], &expected_digest->buffer[0], in cmp_policy_digest() 50 policyDigest->size)) { in cmp_policy_digest() 51 free(policyDigest); in cmp_policy_digest() 56 free(policyDigest); in cmp_policy_digest()
|
D | esys-policy-regression.int.c | 35 TPM2B_DIGEST *policyDigest; in cmp_policy_digest() local 40 ESYS_TR_NONE, ESYS_TR_NONE, &policyDigest); in cmp_policy_digest() 43 LOGBLOB_DEBUG(&policyDigest->buffer[0], policyDigest->size, in cmp_policy_digest() 46 if (policyDigest->size != 20 in cmp_policy_digest() 47 || memcmp(&policyDigest->buffer[0], &expected_digest->buffer[0], in cmp_policy_digest() 48 policyDigest->size)) { in cmp_policy_digest() 49 free(policyDigest); in cmp_policy_digest() 54 free(policyDigest); in cmp_policy_digest()
|
/external/tpm2-tss/src/tss2-esys/api/ |
D | Esys_PolicyGetDigest.c | 70 TPM2B_DIGEST **policyDigest) in Esys_PolicyGetDigest() argument 89 r = Esys_PolicyGetDigest_Finish(esysContext, policyDigest); in Esys_PolicyGetDigest() 235 TPM2B_DIGEST **policyDigest) in Esys_PolicyGetDigest_Finish() argument 239 esysContext, policyDigest); in Esys_PolicyGetDigest_Finish() 255 if (policyDigest != NULL) { in Esys_PolicyGetDigest_Finish() 256 *policyDigest = calloc(sizeof(TPM2B_DIGEST), 1); in Esys_PolicyGetDigest_Finish() 257 if (*policyDigest == NULL) { in Esys_PolicyGetDigest_Finish() 315 (policyDigest != NULL) ? *policyDigest in Esys_PolicyGetDigest_Finish() 326 if (policyDigest != NULL) in Esys_PolicyGetDigest_Finish() 327 SAFE_FREE(*policyDigest); in Esys_PolicyGetDigest_Finish()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/EA/ |
D | PolicyOR.c | 65 || (MemoryEqual2B(&session->u2.policyDigest.b, in TPM2_PolicyOR() 73 session->u2.policyDigest.t.size in TPM2_PolicyOR() 76 MemorySet(session->u2.policyDigest.t.buffer, 0, in TPM2_PolicyOR() 77 session->u2.policyDigest.t.size); in TPM2_PolicyOR() 78 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyOR() 90 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyOR()
|
D | Policy_spt.c | 82 if(cpHashA->t.size != session->u2.policyDigest.t.size) in PolicyParameterChecks() 117 pAssert(session->u2.policyDigest.t.size in PolicyContextUpdate() 121 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in PolicyContextUpdate() 131 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in PolicyContextUpdate() 141 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in PolicyContextUpdate() 147 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in PolicyContextUpdate() 212 session->u2.policyDigest.t.size = CryptHashGetDigestSize(session->authHashAlg); in PolicyDigestClear() 213 MemorySet(session->u2.policyDigest.t.buffer, 0, in PolicyDigestClear() 214 session->u2.policyDigest.t.size); in PolicyDigestClear()
|
D | PolicyDuplicationSelect.c | 86 session->u2.policyDigest.t.size in TPM2_PolicyDuplicationSelect() 89 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyDuplicationSelect() 105 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyDuplicationSelect()
|
D | PolicyGetDigest.c | 56 out->policyDigest = session->u2.policyDigest; in TPM2_PolicyGetDigest()
|
D | PolicyPhysicalPresence.c | 64 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPhysicalPresence() 70 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPhysicalPresence()
|
D | PolicyPassword.c | 66 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPassword() 72 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPassword()
|
D | PolicyAuthValue.c | 66 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyAuthValue() 72 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyAuthValue()
|
D | PolicyCommandCode.c | 73 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCommandCode() 82 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCommandCode()
|
D | PolicyNvWritten.c | 81 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNvWritten() 90 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNvWritten()
|
D | PolicyNameHash.c | 82 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNameHash() 91 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNameHash()
|
D | PolicyCpHash.c | 85 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCpHash() 94 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCpHash()
|
D | PolicyTemplate.c | 85 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyTemplate() 94 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyTemplate()
|
D | PolicyAuthorizeNV.c | 100 if(!MemoryEqual(&policyInNv.digest, &session->u2.policyDigest.t.buffer, in TPM2_PolicyAuthorizeNV() 101 session->u2.policyDigest.t.size)) in TPM2_PolicyAuthorizeNV()
|
D | PolicyLocality.c | 118 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyLocality() 127 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyLocality()
|
D | PolicyPCR.c | 100 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPCR() 114 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPCR()
|
D | PolicyCounterTimer.c | 115 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCounterTimer() 124 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCounterTimer()
|
/external/tpm2-tss/src/tss2-sys/api/ |
D | Tss2_Sys_PolicyGetDigest.c | 44 TPM2B_DIGEST *policyDigest) in Tss2_Sys_PolicyGetDigest_Complete() argument 59 policyDigest); in Tss2_Sys_PolicyGetDigest_Complete() 66 TPM2B_DIGEST *policyDigest, in Tss2_Sys_PolicyGetDigest() argument 80 return Tss2_Sys_PolicyGetDigest_Complete(sysContext, policyDigest); in Tss2_Sys_PolicyGetDigest()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/support/ |
D | Handle.c | 176 TPM2B_DIGEST policyDigest; in PermanentHandleGetPolicy() local 179 policyAlg = EntityGetAuthPolicy(handle, &policyDigest); in PermanentHandleGetPolicy() 189 policyDigest.t.buffer, policyDigest.t.size); in PermanentHandleGetPolicy()
|
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/AttachedComponent/ |
D | Policy_AC_SendSelect.c | 85 session->u2.policyDigest.t.size in TPM2_Policy_AC_SendSelect() 88 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_Policy_AC_SendSelect() 107 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_Policy_AC_SendSelect()
|
/external/tpm2-tss/test/tpmclient/ |
D | tpmclient.int.c | 868 …olicyFn )( TSS2_SYS_CONTEXT *sysContext, SESSION *trialPolicySession, TPM2B_DIGEST *policyDigest ); 869 …ateObjectFn )( TSS2_SYS_CONTEXT *sysContext, SESSION **policySession, TPM2B_DIGEST *policyDigest ); 874 …uildPolicyFn )( TSS2_SYS_CONTEXT *sysContext, SESSION *policySession, TPM2B_DIGEST *policyDigest ), in BuildPolicy() argument 875 TPM2B_DIGEST *policyDigest, bool trialSession ) in BuildPolicy() 895 rval = ( *buildPolicyFn )( sysContext, *policySession, policyDigest ); in BuildPolicy() 899 INIT_SIMPLE_TPM2B_SIZE( *policyDigest ); in BuildPolicy() 901 0, policyDigest, 0 ); in BuildPolicy() 917 … CreateNVIndex( TSS2_SYS_CONTEXT *sysContext, SESSION **policySession, TPM2B_DIGEST *policyDigest ) in CreateNVIndex() argument 949 INIT_SIMPLE_TPM2B_SIZE( *policyDigest ); in CreateNVIndex() 951 (*policySession)->sessionHandle, 0, policyDigest, 0 ); in CreateNVIndex() [all …]
|