Home | History | Annotate | Download | only in tpm2

Lines Matching defs:hashState

258     CPRI_HASH_STATE         *hashState             // IN: the hash context
261 return hashState->hashAlg;
289 // stateSize in hashState is updated to indicate the number of bytes of state that were saved. This function
302 CPRI_HASH_STATE *hashState // OUT: the state of hash stack.
306 OSSL_HASH_STATE *state = (OSSL_HASH_STATE *)&hashState->state;
315 hashState->hashAlg = hashAlg;
354 CPRI_HASH_STATE *hashState, // IN: the hash context information
361 OSSL_HASH_STATE *state = (OSSL_HASH_STATE *)&hashState->state;
372 if((retVal = GetHashState(context, hashState->hashAlg, stateData)) <= 0)
406 CPRI_HASH_STATE *hashState, // IN: the state of hash stack
412 OSSL_HASH_STATE *state = (OSSL_HASH_STATE *)&hashState->state;
424 if((retVal = GetHashState(context, hashState->hashAlg, stateData)) <= 0)
630 CPRI_HASH_STATE *hashState, // IN: the state of hash stack
637 CPRI_HASH_STATE *state = (CPRI_HASH_STATE *)hashState;
640 _cpri__CompleteHash(hashState, digestSize, digest);
769 CPRI_HASH_STATE hashState;
800 &hashState,
807 _cpri__UpdateHash(&hashState, sizeof(UINT32), marshaledUint32);
810 _cpri__UpdateHash(&hashState, lLen, (BYTE *)label);
813 _cpri__UpdateHash(&hashState, contextU->size, contextU->buffer);
816 _cpri__UpdateHash(&hashState, contextV->size, contextV->buffer);
819 _cpri__UpdateHash(&hashState, sizeof(UINT32), marshaledUint32);
823 _cpri__CompleteHMAC(&hashState, &hmacKey.b, hLen, stream);
862 CPRI_HASH_STATE hashState;
895 if(_cpri__StartHash(hashAlg, FALSE, &hashState) == 0)
899 _cpri__UpdateHash(&hashState, sizeof(UINT32), marshaledUint32);
902 _cpri__UpdateHash(&hashState, Z->size, Z->buffer);
905 _cpri__UpdateHash(&hashState, lSize, (BYTE *)label);
909 _cpri__UpdateHash(&hashState, 1, (BYTE *)"");
912 _cpri__UpdateHash(&hashState, partyUInfo->size, partyUInfo->buffer);
915 _cpri__UpdateHash(&hashState, partyVInfo->size, partyVInfo->buffer);
918 _cpri__CompleteHash(&hashState, hLen, stream);