mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-25 17:35:28 +00:00
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:
parent
f6ab7aeeb1
commit
aa51031256
@ -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
|
||||
|
||||
@ -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) },
|
||||
|
||||
Loading…
Reference in New Issue
Block a user