Increase MIN_EVICT_OBJECTS to 7 for value of TPM_PT_HR_PERSISTENT_MIN

Adapt the MIN_EVICT_OBJETCS #define value to 7 so that it meeds to
TPM Profile (PTP) Specification and TPM_PT_HR_PERSISTENT_MIN returns
the proper value.

We allow to read the state from a TPM that had a lesser value before.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2018-05-16 09:13:41 -04:00
parent f6ab7aeeb1
commit aa51031256
2 changed files with 2 additions and 2 deletions

View File

@ -360,7 +360,7 @@
#define MAX_LOADED_SESSIONS 3
#define MAX_SESSION_NUM 3
#define MAX_LOADED_OBJECTS 3
#define MIN_EVICT_OBJECTS 2
#define MIN_EVICT_OBJECTS 7
#define NUM_POLICY_PCR_GROUP 1
#define NUM_AUTHVALUE_PCR_GROUP 1
#define MAX_CONTEXT_SIZE 2474

View File

@ -3407,7 +3407,7 @@ static const struct _entry {
{ COMPILE_CONSTANT(MAX_LOADED_SESSIONS, EQ) },
{ COMPILE_CONSTANT(MAX_SESSION_NUM, EQ) },
{ COMPILE_CONSTANT(MAX_LOADED_OBJECTS, EQ) },
{ COMPILE_CONSTANT(MIN_EVICT_OBJECTS, EQ) },
{ COMPILE_CONSTANT(MIN_EVICT_OBJECTS, LE) },
{ COMPILE_CONSTANT(NUM_POLICY_PCR_GROUP, EQ) },
{ COMPILE_CONSTANT(NUM_AUTHVALUE_PCR_GROUP, EQ) },
{ COMPILE_CONSTANT(MAX_CONTEXT_SIZE, EQ) },