Lines Matching refs:hashObject
52 HASH_OBJECT *hashObject; in TPM2_SequenceComplete() local
55 hashObject = (HASH_OBJECT *)HandleToObject(in->sequenceHandle); in TPM2_SequenceComplete()
58 if(hashObject->attributes.hashSeq == CLEAR in TPM2_SequenceComplete()
59 && hashObject->attributes.hmacSeq == CLEAR) in TPM2_SequenceComplete()
62 if(hashObject->attributes.hashSeq == SET) // sequence object for hash in TPM2_SequenceComplete()
65 TPM_ALG_ID hashAlg = hashObject->state.hashState[0].hashAlg; in TPM2_SequenceComplete()
68 CryptDigestUpdate2B(&hashObject->state.hashState[0], &in->buffer.b); in TPM2_SequenceComplete()
71 out->result.t.size = CryptHashEnd(&hashObject->state.hashState[0], in TPM2_SequenceComplete()
75 if(hashObject->attributes.firstBlock == CLEAR) in TPM2_SequenceComplete()
80 hashObject->attributes.ticketSafe = SET; in TPM2_SequenceComplete()
91 else if(hashObject->attributes.ticketSafe == CLEAR) in TPM2_SequenceComplete()
107 CryptDigestUpdate2B(&hashObject->state.hmacState.hashState, &in->buffer.b); in TPM2_SequenceComplete()
110 out->result.t.size = CryptHmacEnd(&(hashObject->state.hmacState), in TPM2_SequenceComplete()
115 out->result.t.size = CryptMacEnd(&hashObject->state.hmacState, in TPM2_SequenceComplete()
126 hashObject->attributes.evict = SET; in TPM2_SequenceComplete()