Home | History | Annotate | Download | only in tpm2

Lines Matching defs:session

23    SESSION      *session;
29 // Get pointer to the session structure
30 session = SessionGet(in->policySession);
32 // A new cpHash is given in input parameter, but cpHash in session context
35 && session->u1.cpHash.t.size != 0
36 && !Memory2BEqual(&in->cpHashA.b, &session->u1.cpHash.b)
40 // A valid cpHash must have the same size as session hash digest
41 if(in->cpHashA.t.size != CryptGetHashDigestSize(session->authHashAlg))
49 CryptStartHash(session->authHashAlg, &hashState);
52 CryptUpdateDigest2B(&hashState, &session->u2.policyDigest.b);
61 CryptCompleteHash2B(&hashState, &session->u2.policyDigest.b);
63 // update cpHash in session context
64 session->u1.cpHash = in->cpHashA;
65 session->attributes.iscpHashDefined = SET;