From 3e535e65e307ef9ce02d87993e98ec5dbf7e6dc2 Mon Sep 17 00:00:00 2001 From: Jonas Witschel Date: Thu, 28 May 2020 21:11:21 +0200 Subject: [PATCH] TpmProfile.h: increase NV_MEMORY_SIZE to account for RSA 3072 keys Version 1628 enabled RSA 3072, thus increasing the object size, without increasing the NV memory. As a result, only three objects can be persisted (TPM_PT_HR_PERSISTENT_AVAIL), which is a very small number (less than many commercially available TPMs). Increase the memory size to 2^15=32768 to account for the algorithm change, which allows to persist up to 10 objects. --- src/TpmProfile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TpmProfile.h b/src/TpmProfile.h index bec58a6..23229fc 100644 --- a/src/TpmProfile.h +++ b/src/TpmProfile.h @@ -201,7 +201,7 @@ #define MAX_CAP_BUFFER 1024 #endif #ifndef NV_MEMORY_SIZE -#define NV_MEMORY_SIZE 16384 +#define NV_MEMORY_SIZE 32768 #endif #ifndef MIN_COUNTER_INDICES #define MIN_COUNTER_INDICES 8