Home
last modified time | relevance | path

Searched refs:policyDigest (Results 1 – 25 of 39) sorted by relevance

12

/external/tpm2-tss/test/integration/
Desys-policy-template-opt.int.c37 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()
Desys-policy-physical-presence-opt.int.c37 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()
Desys-policy-authorize-nv-opt.int.c37 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()
Desys-policy-regression.int.c35 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/
DEsys_PolicyGetDigest.c70 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/
DPolicyOR.c65 || (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()
DPolicy_spt.c82 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()
DPolicyDuplicationSelect.c86 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()
DPolicyGetDigest.c56 out->policyDigest = session->u2.policyDigest; in TPM2_PolicyGetDigest()
DPolicyPhysicalPresence.c64 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPhysicalPresence()
70 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPhysicalPresence()
DPolicyPassword.c66 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPassword()
72 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPassword()
DPolicyAuthValue.c66 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyAuthValue()
72 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyAuthValue()
DPolicyCommandCode.c73 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCommandCode()
82 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCommandCode()
DPolicyNvWritten.c81 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNvWritten()
90 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNvWritten()
DPolicyNameHash.c82 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNameHash()
91 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNameHash()
DPolicyCpHash.c85 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCpHash()
94 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCpHash()
DPolicyTemplate.c85 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyTemplate()
94 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyTemplate()
DPolicyAuthorizeNV.c100 if(!MemoryEqual(&policyInNv.digest, &session->u2.policyDigest.t.buffer, in TPM2_PolicyAuthorizeNV()
101 session->u2.policyDigest.t.size)) in TPM2_PolicyAuthorizeNV()
DPolicyLocality.c118 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyLocality()
127 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyLocality()
DPolicyPCR.c100 CryptDigestUpdate2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPCR()
114 CryptHashEnd2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPCR()
DPolicyCounterTimer.c115 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/
DTss2_Sys_PolicyGetDigest.c44 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/
DHandle.c176 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/
DPolicy_AC_SendSelect.c85 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/
Dtpmclient.int.c868 …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 …]

12