HomeSort by relevance Sort by last modified time
    Searched defs:hashState (Results 1 - 25 of 32) sorted by null

1 2

  /external/tpm2/
Hash.c 16 HASH_STATE hashState;
22 out->outHash.t.size = CryptStartHash(in->hashAlg, &hashState);
24 CryptUpdateDigest2B(&hashState, &in->data.b);
26 CryptCompleteHash2B(&hashState, &out->outHash.b);
PolicyAuthValue.c 18 HASH_STATE hashState;
28 CryptStartHash(session->authHashAlg, &hashState);
31 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
34 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
37 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
PolicyCommandCode.c 23 HASH_STATE hashState;
39 CryptStartHash(session->authHashAlg, &hashState);
42 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
45 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
48 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &in->code);
51 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
PolicyCpHash.c 25 HASH_STATE hashState;
49 CryptStartHash(session->authHashAlg, &hashState);
52 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
55 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
58 CryptUpdateDigest2B(&hashState, &in->cpHashA.b);
61 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
PolicyDuplicationSelect.c 23 HASH_STATE hashState;
42 session->u1.cpHash.t.size = CryptStartHash(session->authHashAlg, &hashState);
45 CryptUpdateDigest2B(&hashState, &in->objectName.b);
48 CryptUpdateDigest2B(&hashState, &in->newParentName.b);
51 CryptCompleteHash2B(&hashState, &session->u1.cpHash.b);
57 = CryptStartHash(session->authHashAlg, &hashState);
60 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
63 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
67 CryptUpdateDigest2B(&hashState, &in->objectName.b);
70 CryptUpdateDigest2B(&hashState, &in->newParentName.b)
    [all...]
PolicyNameHash.c 25 HASH_STATE hashState;
46 CryptStartHash(session->authHashAlg, &hashState);
49 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
52 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
55 CryptUpdateDigest2B(&hashState, &in->nameHash.b);
58 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
PolicyNvWritten.c 24 HASH_STATE hashState;
50 CryptStartHash(session->authHashAlg, &hashState);
53 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
56 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
59 CryptUpdateDigestInt(&hashState, sizeof(TPMI_YES_NO), &in->writtenSet);
62 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
PolicyPassword.c 18 HASH_STATE hashState;
28 CryptStartHash(session->authHashAlg, &hashState);
31 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
34 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
37 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
PolicyPhysicalPresence.c 17 HASH_STATE hashState;
27 CryptStartHash(session->authHashAlg, &hashState);
30 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
33 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
36 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
PolicyOR.c 40 HASH_STATE hashState;
45 &hashState);
49 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
52 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
58 CryptUpdateDigest2B(&hashState, &in->pHashList.digests[i].b);
61 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
Policy_spt.c 88 HASH_STATE hashState;
91 policyDigestSize = CryptStartHash(session->authHashAlg, &hashState);
95 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
97 CryptUpdateDigestInt(&hashState, sizeof(commandCode), &commandCode);
100 CryptUpdateDigest2B(&hashState, &name->b);
102 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
104 CryptStartHash(session->authHashAlg, &hashState);
106 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
109 CryptUpdateDigest2B(&hashState, &ref->b);
111 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b)
    [all...]
NV_Extend.c 31 HASH_STATE hashState;
75 newDigest.t.size = CryptStartHash(nvIndex.publicArea.nameAlg, &hashState);
78 CryptUpdateDigest2B(&hashState, &oldDigest.b);
81 CryptUpdateDigest2B(&hashState, &in->data.b);
84 CryptCompleteHash2B(&hashState, &newDigest.b);
PCR_Event.c 24 HASH_STATE hashState;
56 size = CryptStartHash(hash, &hashState);
57 CryptUpdateDigest2B(&hashState, &in->eventData.b);
58 CryptCompleteHash(&hashState, size,
PolicyAuthorize.c 27 HASH_STATE hashState;
62 authHash.t.size = CryptStartHash(hashAlg, &hashState);
65 CryptUpdateDigest2B(&hashState, &in->approvedPolicy.b);
68 CryptUpdateDigest2B(&hashState, &in->policyRef.b);
71 CryptCompleteHash2B(&hashState, &authHash.b);
PolicyCounterTimer.c 28 HASH_STATE hashState;
147 argHash.t.size = CryptStartHash(session->authHashAlg, &hashState);
149 CryptUpdateDigest2B(&hashState, &in->operandB.b);
151 CryptUpdateDigestInt(&hashState, sizeof(UINT16), &in->offset);
153 CryptUpdateDigestInt(&hashState, sizeof(TPM_EO), &in->operation);
155 CryptCompleteHash2B(&hashState, &argHash.b);
159 CryptStartHash(session->authHashAlg, &hashState);
162 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
165 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
168 CryptUpdateDigest2B(&hashState, &argHash.b)
    [all...]
PolicyLocality.c 30 HASH_STATE hashState;
90 CryptStartHash(session->authHashAlg, &hashState);
93 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
96 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
99 CryptUpdateDigest(&hashState, marshalSize, marshalBuffer);
102 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
PolicyNV.c 34 HASH_STATE hashState;
154 argHash.t.size = CryptStartHash(session->authHashAlg, &hashState);
157 CryptUpdateDigest2B(&hashState, &in->operandB.b);
160 CryptUpdateDigestInt(&hashState, sizeof(UINT16), &in->offset);
163 CryptUpdateDigestInt(&hashState, sizeof(TPM_EO), &in->operation);
166 CryptCompleteHash2B(&hashState, &argHash.b);
170 CryptStartHash(session->authHashAlg, &hashState);
173 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
176 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
179 CryptUpdateDigest2B(&hashState, &argHash.b)
    [all...]
PolicyPCR.c 29 HASH_STATE hashState;
65 CryptStartHash(session->authHashAlg, &hashState);
68 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
71 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode);
77 CryptUpdateDigest(&hashState, pcrSize, pcrs);
80 CryptUpdateDigest2B(&hashState, &pcrDigest.b);
83 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
PolicySigned.c 37 HASH_STATE hashState;
82 &hashState);
85 CryptUpdateDigest2B(&hashState, &in->nonceTPM.b);
88 CryptUpdateDigestInt(&hashState, sizeof(UINT32), (BYTE*) &in->expiration);
91 CryptUpdateDigest2B(&hashState, &in->cpHashA.b);
94 CryptUpdateDigest2B(&hashState, &in->policyRef.b);
97 CryptCompleteHash2B(&hashState, &authHash.b);
Attest_spt.c 135 HASH_STATE hashState;
161 digest.t.size = CryptStartHash(hashAlg, &hashState);
162 CryptUpdateDigest(&hashState, attest->t.size, attest->t.attestationData);
163 CryptCompleteHash2B(&hashState, &digest.b);
168 CryptStartHash(hashAlg, &hashState);
169 CryptUpdateDigest(&hashState,
172 CryptUpdateDigest(&hashState, digest.t.size, digest.t.buffer);
173 CryptCompleteHash2B(&hashState, &digest.b);
CommandAudit.c 235 HASH_STATE hashState;
237 digest->t.size = CryptStartHash(gp.auditHashAlg, &hashState);
243 CryptUpdateDigestInt(&hashState, sizeof(i), &i);
247 CryptCompleteHash2B(&hashState, &digest->b);
stubs_hash.c 62 CPRI_HASH_STATE * hashState, // IN: the state of hash stack
69 CPRI_HASH_STATE *state = (CPRI_HASH_STATE *)hashState;
72 _cpri__CompleteHash(hashState, digestSize, digest);
102 CPRI_HASH_STATE hashState;
133 &hashState,
140 _cpri__UpdateHash(&hashState, sizeof(UINT32), marshaledUint32);
143 _cpri__UpdateHash(&hashState, lLen, (BYTE *)label);
146 _cpri__UpdateHash(&hashState, contextU->size, contextU->buffer);
149 _cpri__UpdateHash(&hashState, contextV->size, contextV->buffer);
152 _cpri__UpdateHash(&hashState, sizeof(UINT32), marshaledUint32)
    [all...]
CpriHash.c 258 CPRI_HASH_STATE *hashState // IN: the hash context
261 return hashState->hashAlg;
289 // stateSize in hashState is updated to indicate the number of bytes of state that were saved. This function
302 CPRI_HASH_STATE *hashState // OUT: the state of hash stack.
306 OSSL_HASH_STATE *state = (OSSL_HASH_STATE *)&hashState->state;
315 hashState->hashAlg = hashAlg;
354 CPRI_HASH_STATE *hashState, // IN: the hash context information
361 OSSL_HASH_STATE *state = (OSSL_HASH_STATE *)&hashState->state;
372 if((retVal = GetHashState(context, hashState->hashAlg, stateData)) <= 0)
406 CPRI_HASH_STATE *hashState, // IN: the state of hash stac
    [all...]
Object.c 498 CryptStartHashSequence(hashAlg, &hashObject->state.hashState[0]);
531 CryptStartHash(hash, &hashObject->state.hashState[count]);
533 CryptStartHashSequence(hash, &hashObject->state.hashState[count]);
561 CryptCompleteHash(&hashObject->state.hashState[count], 0, buffer);
726 HASH_STATE hashState; // hash state
734 name->t.size = CryptStartHash(publicArea->nameAlg, &hashState);
740 CryptUpdateDigest2B(&hashState, &marshalBuffer.b);
742 CryptCompleteHash(&hashState, name->t.size, &name->t.name[2]);
763 HASH_STATE hashState; // hash state
766 qualifiedName->t.size = CryptStartHash(nameAlg, &hashState);
    [all...]
Object_spt.c 202 HASH_STATE hashState;
204 integrity->t.size = CryptStartHash(hashAlg, &hashState);
206 CryptUpdateDigest(&hashState, dataSize, sensitiveData);
208 CryptUpdateDigest2B(&hashState, &name->b);
210 CryptCompleteHash2B(&hashState, &integrity->b);
601 HASH_STATE hashState;
646 creationDigest->t.size = CryptStartHash(nameHashAlg, &hashState);
647 CryptUpdateDigest(&hashState, outCreation->t.size, creationBuffer);
648 CryptCompleteHash2B(&hashState, &creationDigest->b);
    [all...]

Completed in 333 milliseconds

1 2