Searched refs:hashState (Results 1 - 25 of 40) sorted by relevance

12

/external/tpm2/
H A DPolicyPhysicalPresence.c17 HASH_STATE hashState; local
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);
H A DPolicyDuplicationSelect.c23 HASH_STATE hashState; local
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,
[all...]
H A DPolicyAuthValue.c18 HASH_STATE hashState; local
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);
H A DPolicyPassword.c18 HASH_STATE hashState; local
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);
H A DPolicyCommandCode.c23 HASH_STATE hashState; local
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);
H A DPolicyCpHash.c25 HASH_STATE hashState; local
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);
H A DPolicyNameHash.c25 HASH_STATE hashState; local
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);
H A DPolicyNvWritten.c24 HASH_STATE hashState; local
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);
H A DPolicyPCR.c29 HASH_STATE hashState; local
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);
H A DHash.c16 HASH_STATE hashState; local
22 out->outHash.t.size = CryptStartHash(in->hashAlg, &hashState);
24 CryptUpdateDigest2B(&hashState, &in->data.b);
26 CryptCompleteHash2B(&hashState, &out->outHash.b);
H A DPolicyLocality.c30 HASH_STATE hashState; local
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);
H A DPolicyOR.c40 HASH_STATE hashState; local
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);
H A DPolicy_spt.c88 HASH_STATE hashState; local
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,
[all...]
H A DPolicySigned.c37 HASH_STATE hashState; local
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);
H A DNV_Extend.c31 HASH_STATE hashState; local
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);
H A DPolicyAuthorize.c27 HASH_STATE hashState; local
62 authHash.t.size = CryptStartHash(hashAlg, &hashState);
65 CryptUpdateDigest2B(&hashState, &in->approvedPolicy.b);
68 CryptUpdateDigest2B(&hashState, &in->policyRef.b);
71 CryptCompleteHash2B(&hashState, &authHash.b);
H A Dstubs_hash.c62 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; local
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, sizeo
61 _cpri__CompleteHMAC( CPRI_HASH_STATE * hashState, TPM2B * oPadKey, UINT32 dOutSize, BYTE * dOut ) argument
179 CPRI_HASH_STATE hashState; local
[all...]
H A D_TPM_Hash_Data.c40 hashObject->state.hashState[i].state.hashAlg))
42 CryptUpdateDigest(&hashObject->state.hashState[i], dataSize, data);
H A DPolicyCounterTimer.c28 HASH_STATE hashState; local
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,
[all...]
H A DPCR_Event.c24 HASH_STATE hashState; local
56 size = CryptStartHash(hash, &hashState);
57 CryptUpdateDigest2B(&hashState, &in->eventData.b);
58 CryptCompleteHash(&hashState, size,
H A DCpriHash_fp.h11 _cpri__CompleteHash(CPRI_HASH_STATE *hashState, // IN: the state of hash stack
74 CPRI_HASH_STATE *hashState // OUT: the state of hash stack.
77 CPRI_HASH_STATE *hashState, // IN: the hash context information
84 CPRI_HASH_STATE *hashState, // IN: the state of hash stack
90 _cpri__GetContextAlg(CPRI_HASH_STATE *hashState // IN: the hash context
H A DSequenceComplete.c44 TPM_ALG_ID hashAlg = hashObject->state.hashState[0].state.hashAlg;
46 CryptUpdateDigest2B(&hashObject->state.hashState[0], &in->buffer.b);
51 CryptGetContextAlg(&hashObject->state.hashState[0]));
53 CryptCompleteHash2B(&hashObject->state.hashState[0], &out->result.b);
95 CryptGetContextAlg(&hashObject->state.hmacState.hashState));
H A DAttest_spt.c135 HASH_STATE hashState; local
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);
H A D_TPM_Hash_End.c59 hashObject->state.hashState[i].state.hashAlg))
63 CryptCompleteHash2B(&hashObject->state.hashState[i], &digest.b);
H A DCpriHash.c258 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, // I
353 _cpri__UpdateHash( CPRI_HASH_STATE *hashState, UINT32 dataSize, BYTE *data ) argument
405 _cpri__CompleteHash( CPRI_HASH_STATE *hashState, UINT32 dOutSize, BYTE *dOut ) argument
629 _cpri__CompleteHMAC( CPRI_HASH_STATE *hashState, TPM2B *oPadKey, UINT32 dOutSize, BYTE *dOut ) argument
769 CPRI_HASH_STATE hashState; local
862 CPRI_HASH_STATE hashState; local
[all...]

Completed in 202 milliseconds

12