Home | History | Annotate | Download | only in tpm2

Lines Matching full:namehash

14 //     TPM_RC_CPHASH                     nameHash has been previously set to a different value
15 // TPM_RC_SIZE nameHash is not the size of the digest produced by the hash
32 // A new nameHash is given in input parameter, but cpHash in session context
34 if(in->nameHash.t.size != 0 && session->u1.cpHash.t.size != 0)
37 // A valid nameHash must have the same size as session hash digest
38 if(in->nameHash.t.size != CryptGetHashDigestSize(session->authHashAlg))
44 // policyDigestnew = hash(policyDigestold || TPM_CC_PolicyNameHash || nameHash)
54 // add nameHash
55 CryptUpdateDigest2B(&hashState, &in->nameHash.b);
60 // clear iscpHashDefined bit to indicate now this field contains a nameHash
63 // update nameHash in session context
64 session->u1.cpHash = in->nameHash;