tpm2: Rename TPM_MAX_DERIVATION_BITS to MAX_DERIVATION_BITS

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
Stefan Berger 2019-11-26 14:27:07 -05:00 committed by Stefan Berger
parent 57bfde7bf7
commit fb94dadeca
3 changed files with 4 additions and 4 deletions

View File

@ -3619,7 +3619,7 @@ static const struct _entry {
{ COMPILE_CONSTANT(CRT_FORMAT_RSA, EQ) },
{ COMPILE_CONSTANT(VENDOR_COMMAND_COUNT, EQ) },
{ COMPILE_CONSTANT(MAX_VENDOR_BUFFER_SIZE, EQ) },
{ COMPILE_CONSTANT(TPM_MAX_DERIVATION_BITS, EQ) },
{ COMPILE_CONSTANT(MAX_DERIVATION_BITS, EQ) },
{ COMPILE_CONSTANT(PROOF_SIZE, EQ) },
{ COMPILE_CONSTANT(HASH_COUNT, EQ) },
};

View File

@ -485,7 +485,7 @@ TPM2_CreateLoaded(
&parent->sensitive.sensitive.bits.b,
&labelContext.label.b,
&labelContext.context.b,
TPM_MAX_DERIVATION_BITS);
MAX_DERIVATION_BITS);
// Clear the sensitive size so that the creation functions will not try
// to use this value.
in->inSensitive.sensitive.data.t.size = 0;

View File

@ -315,8 +315,8 @@
#ifndef MAX_VENDOR_BUFFER_SIZE
#define MAX_VENDOR_BUFFER_SIZE 1024
#endif
#ifndef TPM_MAX_DERIVATION_BITS
#define TPM_MAX_DERIVATION_BITS 8192
#ifndef MAX_DERIVATION_BITS
#define MAX_DERIVATION_BITS 8192
#endif
#ifndef SIZE_OF_X509_SERIAL_NUMBER
#define SIZE_OF_X509_SERIAL_NUMBER 20