Home
last modified time | relevance | path

Searched refs:hState (Results 1 – 1 of 1) sorted by relevance

/external/ms-tpm-20-ref/TPMCmd/tpm/src/crypt/
DCryptHash.c589 PHASH_STATE hState = (PHASH_STATE)&state->hashState; in CryptHmacEnd() local
592 if(hState->type == HASH_STATE_SMAC) in CryptHmacEnd()
598 pAssert(hState->type == HASH_STATE_HMAC); in CryptHmacEnd()
599 hState->def = CryptGetHashDef(hState->hashAlg); in CryptHmacEnd()
601 hState->type = HASH_STATE_HASH; in CryptHmacEnd()
602 if(hState->hashAlg == TPM_ALG_NULL) in CryptHmacEnd()
607 HashEnd(hState, hState->def->digestSize, temp); in CryptHmacEnd()
609 CryptHashStart(hState, hState->hashAlg); in CryptHmacEnd()
610 CryptDigestUpdate(hState, state->hmacKey.t.size, state->hmacKey.t.buffer); in CryptHmacEnd()
611 CryptDigestUpdate(hState, hState->def->digestSize, temp); in CryptHmacEnd()
[all …]