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