/external/tpm2/ |
D | PolicyDuplicationSelect.c | 23 HASH_STATE hashState; in TPM2_PolicyDuplicationSelect() local 42 session->u1.cpHash.t.size = CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyDuplicationSelect() 45 CryptUpdateDigest2B(&hashState, &in->objectName.b); in TPM2_PolicyDuplicationSelect() 48 CryptUpdateDigest2B(&hashState, &in->newParentName.b); in TPM2_PolicyDuplicationSelect() 51 CryptCompleteHash2B(&hashState, &session->u1.cpHash.b); in TPM2_PolicyDuplicationSelect() 57 = CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyDuplicationSelect() 60 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyDuplicationSelect() 63 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyDuplicationSelect() 67 CryptUpdateDigest2B(&hashState, &in->objectName.b); in TPM2_PolicyDuplicationSelect() 70 CryptUpdateDigest2B(&hashState, &in->newParentName.b); in TPM2_PolicyDuplicationSelect() [all …]
|
D | stubs_hash.c | 62 CPRI_HASH_STATE * hashState, // IN: the state of hash stack in _cpri__CompleteHMAC() argument 69 CPRI_HASH_STATE *state = (CPRI_HASH_STATE *)hashState; in _cpri__CompleteHMAC() 72 _cpri__CompleteHash(hashState, digestSize, digest); in _cpri__CompleteHMAC() 102 CPRI_HASH_STATE hashState; in _cpri__KDFa() local 133 &hashState, in _cpri__KDFa() 140 _cpri__UpdateHash(&hashState, sizeof(UINT32), marshaledUint32); in _cpri__KDFa() 143 _cpri__UpdateHash(&hashState, lLen, (BYTE *)label); in _cpri__KDFa() 146 _cpri__UpdateHash(&hashState, contextU->size, contextU->buffer); in _cpri__KDFa() 149 _cpri__UpdateHash(&hashState, contextV->size, contextV->buffer); in _cpri__KDFa() 152 _cpri__UpdateHash(&hashState, sizeof(UINT32), marshaledUint32); in _cpri__KDFa() [all …]
|
D | Policy_spt.c | 88 HASH_STATE hashState; in PolicyContextUpdate() local 91 policyDigestSize = CryptStartHash(session->authHashAlg, &hashState); in PolicyContextUpdate() 95 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in PolicyContextUpdate() 97 CryptUpdateDigestInt(&hashState, sizeof(commandCode), &commandCode); in PolicyContextUpdate() 100 CryptUpdateDigest2B(&hashState, &name->b); in PolicyContextUpdate() 102 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in PolicyContextUpdate() 104 CryptStartHash(session->authHashAlg, &hashState); in PolicyContextUpdate() 106 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in PolicyContextUpdate() 109 CryptUpdateDigest2B(&hashState, &ref->b); in PolicyContextUpdate() 111 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in PolicyContextUpdate()
|
D | CpriHash.c | 258 CPRI_HASH_STATE *hashState // IN: the hash context in _cpri__GetContextAlg() argument 261 return hashState->hashAlg; in _cpri__GetContextAlg() 302 CPRI_HASH_STATE *hashState // OUT: the state of hash stack. in _cpri__StartHash() argument 306 OSSL_HASH_STATE *state = (OSSL_HASH_STATE *)&hashState->state; in _cpri__StartHash() 315 hashState->hashAlg = hashAlg; in _cpri__StartHash() 354 CPRI_HASH_STATE *hashState, // IN: the hash context information in _cpri__UpdateHash() argument 361 OSSL_HASH_STATE *state = (OSSL_HASH_STATE *)&hashState->state; in _cpri__UpdateHash() 372 if((retVal = GetHashState(context, hashState->hashAlg, stateData)) <= 0) in _cpri__UpdateHash() 406 CPRI_HASH_STATE *hashState, // IN: the state of hash stack in _cpri__CompleteHash() argument 412 OSSL_HASH_STATE *state = (OSSL_HASH_STATE *)&hashState->state; in _cpri__CompleteHash() [all …]
|
D | PolicyNV.c | 34 HASH_STATE hashState; in TPM2_PolicyNV() local 154 argHash.t.size = CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyNV() 157 CryptUpdateDigest2B(&hashState, &in->operandB.b); in TPM2_PolicyNV() 160 CryptUpdateDigestInt(&hashState, sizeof(UINT16), &in->offset); in TPM2_PolicyNV() 163 CryptUpdateDigestInt(&hashState, sizeof(TPM_EO), &in->operation); in TPM2_PolicyNV() 166 CryptCompleteHash2B(&hashState, &argHash.b); in TPM2_PolicyNV() 170 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyNV() 173 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNV() 176 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyNV() 179 CryptUpdateDigest2B(&hashState, &argHash.b); in TPM2_PolicyNV() [all …]
|
D | PolicyCounterTimer.c | 28 HASH_STATE hashState; in TPM2_PolicyCounterTimer() local 147 argHash.t.size = CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyCounterTimer() 149 CryptUpdateDigest2B(&hashState, &in->operandB.b); in TPM2_PolicyCounterTimer() 151 CryptUpdateDigestInt(&hashState, sizeof(UINT16), &in->offset); in TPM2_PolicyCounterTimer() 153 CryptUpdateDigestInt(&hashState, sizeof(TPM_EO), &in->operation); in TPM2_PolicyCounterTimer() 155 CryptCompleteHash2B(&hashState, &argHash.b); in TPM2_PolicyCounterTimer() 159 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyCounterTimer() 162 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCounterTimer() 165 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyCounterTimer() 168 CryptUpdateDigest2B(&hashState, &argHash.b); in TPM2_PolicyCounterTimer() [all …]
|
D | PolicyPCR.c | 29 HASH_STATE hashState; in TPM2_PolicyPCR() local 65 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyPCR() 68 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPCR() 71 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyPCR() 77 CryptUpdateDigest(&hashState, pcrSize, pcrs); in TPM2_PolicyPCR() 80 CryptUpdateDigest2B(&hashState, &pcrDigest.b); in TPM2_PolicyPCR() 83 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPCR()
|
D | PolicyCommandCode.c | 23 HASH_STATE hashState; in TPM2_PolicyCommandCode() local 39 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyCommandCode() 42 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCommandCode() 45 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyCommandCode() 48 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &in->code); in TPM2_PolicyCommandCode() 51 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCommandCode()
|
D | PolicyNvWritten.c | 24 HASH_STATE hashState; in TPM2_PolicyNvWritten() local 50 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyNvWritten() 53 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNvWritten() 56 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyNvWritten() 59 CryptUpdateDigestInt(&hashState, sizeof(TPMI_YES_NO), &in->writtenSet); in TPM2_PolicyNvWritten() 62 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNvWritten()
|
D | PolicyNameHash.c | 25 HASH_STATE hashState; in TPM2_PolicyNameHash() local 46 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyNameHash() 49 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNameHash() 52 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyNameHash() 55 CryptUpdateDigest2B(&hashState, &in->nameHash.b); in TPM2_PolicyNameHash() 58 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyNameHash()
|
D | PolicyCpHash.c | 25 HASH_STATE hashState; in TPM2_PolicyCpHash() local 49 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyCpHash() 52 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCpHash() 55 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyCpHash() 58 CryptUpdateDigest2B(&hashState, &in->cpHashA.b); in TPM2_PolicyCpHash() 61 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyCpHash()
|
D | PolicyOR.c | 40 HASH_STATE hashState; in TPM2_PolicyOR() local 45 &hashState); in TPM2_PolicyOR() 49 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyOR() 52 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyOR() 58 CryptUpdateDigest2B(&hashState, &in->pHashList.digests[i].b); in TPM2_PolicyOR() 61 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyOR()
|
D | PolicyPhysicalPresence.c | 17 HASH_STATE hashState; in TPM2_PolicyPhysicalPresence() local 27 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyPhysicalPresence() 30 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPhysicalPresence() 33 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyPhysicalPresence() 36 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPhysicalPresence()
|
D | PolicyLocality.c | 30 HASH_STATE hashState; in TPM2_PolicyLocality() local 90 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyLocality() 93 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyLocality() 96 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyLocality() 99 CryptUpdateDigest(&hashState, marshalSize, marshalBuffer); in TPM2_PolicyLocality() 102 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyLocality()
|
D | PolicySigned.c | 37 HASH_STATE hashState; in TPM2_PolicySigned() local 82 &hashState); in TPM2_PolicySigned() 85 CryptUpdateDigest2B(&hashState, &in->nonceTPM.b); in TPM2_PolicySigned() 88 CryptUpdateDigestInt(&hashState, sizeof(UINT32), (BYTE*) &in->expiration); in TPM2_PolicySigned() 91 CryptUpdateDigest2B(&hashState, &in->cpHashA.b); in TPM2_PolicySigned() 94 CryptUpdateDigest2B(&hashState, &in->policyRef.b); in TPM2_PolicySigned() 97 CryptCompleteHash2B(&hashState, &authHash.b); in TPM2_PolicySigned()
|
D | PolicyPassword.c | 18 HASH_STATE hashState; in TPM2_PolicyPassword() local 28 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyPassword() 31 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPassword() 34 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyPassword() 37 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyPassword()
|
D | PolicyAuthValue.c | 18 HASH_STATE hashState; in TPM2_PolicyAuthValue() local 28 CryptStartHash(session->authHashAlg, &hashState); in TPM2_PolicyAuthValue() 31 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyAuthValue() 34 CryptUpdateDigestInt(&hashState, sizeof(TPM_CC), &commandCode); in TPM2_PolicyAuthValue() 37 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b); in TPM2_PolicyAuthValue()
|
D | Attest_spt.c | 135 HASH_STATE hashState; in SignAttestInfo() local 161 digest.t.size = CryptStartHash(hashAlg, &hashState); in SignAttestInfo() 162 CryptUpdateDigest(&hashState, attest->t.size, attest->t.attestationData); in SignAttestInfo() 163 CryptCompleteHash2B(&hashState, &digest.b); in SignAttestInfo() 168 CryptStartHash(hashAlg, &hashState); in SignAttestInfo() 169 CryptUpdateDigest(&hashState, in SignAttestInfo() 172 CryptUpdateDigest(&hashState, digest.t.size, digest.t.buffer); in SignAttestInfo() 173 CryptCompleteHash2B(&hashState, &digest.b); in SignAttestInfo()
|
D | PolicyAuthorize.c | 27 HASH_STATE hashState; in TPM2_PolicyAuthorize() local 62 authHash.t.size = CryptStartHash(hashAlg, &hashState); in TPM2_PolicyAuthorize() 65 CryptUpdateDigest2B(&hashState, &in->approvedPolicy.b); in TPM2_PolicyAuthorize() 68 CryptUpdateDigest2B(&hashState, &in->policyRef.b); in TPM2_PolicyAuthorize() 71 CryptCompleteHash2B(&hashState, &authHash.b); in TPM2_PolicyAuthorize()
|
D | NV_Extend.c | 31 HASH_STATE hashState; in TPM2_NV_Extend() local 75 newDigest.t.size = CryptStartHash(nvIndex.publicArea.nameAlg, &hashState); in TPM2_NV_Extend() 78 CryptUpdateDigest2B(&hashState, &oldDigest.b); in TPM2_NV_Extend() 81 CryptUpdateDigest2B(&hashState, &in->data.b); in TPM2_NV_Extend() 84 CryptCompleteHash2B(&hashState, &newDigest.b); in TPM2_NV_Extend()
|
D | Hash.c | 16 HASH_STATE hashState; in TPM2_Hash() local 22 out->outHash.t.size = CryptStartHash(in->hashAlg, &hashState); in TPM2_Hash() 24 CryptUpdateDigest2B(&hashState, &in->data.b); in TPM2_Hash() 26 CryptCompleteHash2B(&hashState, &out->outHash.b); in TPM2_Hash()
|
D | CpriHash_fp.h | 11 _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
|
D | SequenceComplete.c | 44 TPM_ALG_ID hashAlg = hashObject->state.hashState[0].state.hashAlg; in TPM2_SequenceComplete() 46 CryptUpdateDigest2B(&hashObject->state.hashState[0], &in->buffer.b); in TPM2_SequenceComplete() 51 CryptGetContextAlg(&hashObject->state.hashState[0])); in TPM2_SequenceComplete() 53 CryptCompleteHash2B(&hashObject->state.hashState[0], &out->result.b); in TPM2_SequenceComplete() 95 CryptGetContextAlg(&hashObject->state.hmacState.hashState)); in TPM2_SequenceComplete()
|
D | PCR_Event.c | 24 HASH_STATE hashState; in TPM2_PCR_Event() local 56 size = CryptStartHash(hash, &hashState); in TPM2_PCR_Event() 57 CryptUpdateDigest2B(&hashState, &in->eventData.b); in TPM2_PCR_Event() 58 CryptCompleteHash(&hashState, size, in TPM2_PCR_Event()
|
D | Object.c | 498 CryptStartHashSequence(hashAlg, &hashObject->state.hashState[0]); in ObjectCreateHashSequence() 531 CryptStartHash(hash, &hashObject->state.hashState[count]); in ObjectCreateEventSequence() 533 CryptStartHashSequence(hash, &hashObject->state.hashState[count]); in ObjectCreateEventSequence() 561 CryptCompleteHash(&hashObject->state.hashState[count], 0, buffer); in ObjectTerminateEvent() 726 HASH_STATE hashState; // hash state in ObjectComputeName() local 734 name->t.size = CryptStartHash(publicArea->nameAlg, &hashState); in ObjectComputeName() 740 CryptUpdateDigest2B(&hashState, &marshalBuffer.b); in ObjectComputeName() 742 CryptCompleteHash(&hashState, name->t.size, &name->t.name[2]); in ObjectComputeName() 763 HASH_STATE hashState; // hash state in ObjectComputeQualifiedName() local 766 qualifiedName->t.size = CryptStartHash(nameAlg, &hashState); in ObjectComputeQualifiedName() [all …]
|