Lines Matching defs:cpHash
460 // This function computes the cpHash as defined in Part 2 and described in Part 1.
470 TPM2B_DIGEST *cpHash, // OUT: cpHash
478 // cpHash = hash(commandCode [ || authName1
482 // A cpHash can contain just a commandCode only if the lone session is
484 // Start cpHash.
485 cpHash->t.size = CryptStartHash(hashAlg, &hashState);
497 CryptCompleteHash2B(&hashState, &cpHash->b);
558 TPM2B_DIGEST *cpHash, // IN: cpHash
643 // Add cpHash
644 CryptUpdateDigest2B(&hmacState, &cpHash->b);
683 TPM2B_DIGEST *cpHash // IN: cpHash of the command
688 ComputeCommandHMAC(sessionIndex, cpHash, &hmac);
709 // d) compare cpHash if applicable; and
729 TPM2B_DIGEST *cpHash, // IN: cpHash using the algorithm of this
821 // Compare cpHash/nameHash if defined, or if the command requires an ADMIN or
823 if(session->u1.cpHash.b.size != 0)
827 // Compare cpHash.
828 if(!Memory2BEqual(&session->u1.cpHash.b, &cpHash->b))
834 // When cpHash
835 if(!Memory2BEqual(&session->u1.cpHash.b, &nameHash->b))
1102 TPM2B_DIGEST *cpHash, // IN: cpHash
1162 cpHash, nameHash);
1185 cpHash);
1262 TPM2B_DIGEST cpHash;
1265 // cpHash
1271 cpHash.t.size = 0;
1321 // If the current cpHash is the right one, don't re-compute.
1327 &cpHash, &nameHash);
1329 // If this session is for auditing, save the cpHash.
1331 s_cpHashForAudit = cpHash;
1337 &cpHash, &nameHash);
1351 result = CheckSessionHMAC(sessionIndex, &cpHash);
1521 // auditDigestnew := hash (auditDigestold || cpHash || rpHash)
1526 // Add cpHash and rpHash.
1579 // auditDigestnew := hash (auditDigestold || cpHash || rpHash)
1584 // Add cpHash