Merge "TBBR: Reduce size of hash buffers when possible" into integration

This commit is contained in:
Sandrine Bailleux 2020-02-19 15:17:56 +00:00 committed by TrustedFirmware Code Review
commit 6cec570246
1 changed files with 8 additions and 0 deletions

View File

@ -41,7 +41,15 @@
#define PK_DER_LEN 91
#endif
#if TF_MBEDTLS_HASH_ALG_ID == TF_MBEDTLS_SHA256
#define HASH_DER_LEN 51
#elif TF_MBEDTLS_HASH_ALG_ID == TF_MBEDTLS_SHA384
#define HASH_DER_LEN 67
#elif TF_MBEDTLS_HASH_ALG_ID == TF_MBEDTLS_SHA512
#define HASH_DER_LEN 83
#else
#error "Invalid value for TF_MBEDTLS_HASH_ALG_ID"
#endif
/*
* The platform must allocate buffers to store the authentication parameters