diff --git a/board/cr50/tpm2/hash.c b/board/cr50/tpm2/hash.c index ec036c8497..cf057958f8 100644 --- a/board/cr50/tpm2/hash.c +++ b/board/cr50/tpm2/hash.c @@ -117,6 +117,9 @@ uint16_t _cpri__StartHash(TPM_ALG_ID alg, BOOL sequence, break; } + if (result > 0) + state->hashAlg = alg; + return result; }