summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/cr50/tpm2/endorsement.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/cr50/tpm2/endorsement.c b/board/cr50/tpm2/endorsement.c
index 9c066e10be..20cdf24715 100644
--- a/board/cr50/tpm2/endorsement.c
+++ b/board/cr50/tpm2/endorsement.c
@@ -489,6 +489,7 @@ static int store_eps(const uint8_t eps[PRIMARY_SEED_SIZE])
{
/* gp is a TPM global state structure, declared in Global.h. */
memcpy(gp.EPSeed.t.buffer, eps, PRIMARY_SEED_SIZE);
+ gp.EPSeed.t.size = PRIMARY_SEED_SIZE;
/* Persist the seed to flash. */
NvWriteReserved(NV_EP_SEED, &gp.EPSeed);