diff options
author | davidcunado-arm <david.cunado@arm.com> | 2017-11-22 22:42:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-22 22:42:12 +0000 |
commit | e2ff5ef8618c0d1213f783875bf15a6e601a2d48 (patch) | |
tree | 427b448fdf8bafafeb487f46b592c77273a95bdc /include | |
parent | a2d60b20ffcd63c057807a648bcda591ad087433 (diff) | |
parent | 9a3088a5f509084e60d9c55bf53985c5ec4ca821 (diff) | |
download | platform_external_arm-trusted-firmware-e2ff5ef8618c0d1213f783875bf15a6e601a2d48.tar.gz platform_external_arm-trusted-firmware-e2ff5ef8618c0d1213f783875bf15a6e601a2d48.tar.bz2 platform_external_arm-trusted-firmware-e2ff5ef8618c0d1213f783875bf15a6e601a2d48.zip |
Merge pull request #1165 from geesun/qx/support-sha512
Add support sha512 for hash algorithm
Diffstat (limited to 'include')
-rw-r--r-- | include/drivers/auth/mbedtls/mbedtls_config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/drivers/auth/mbedtls/mbedtls_config.h b/include/drivers/auth/mbedtls/mbedtls_config.h index 96587acae..f8f260808 100644 --- a/include/drivers/auth/mbedtls/mbedtls_config.h +++ b/include/drivers/auth/mbedtls/mbedtls_config.h @@ -14,6 +14,13 @@ #define TF_MBEDTLS_RSA_AND_ECDSA 3 /* + * Hash algorithms currently supported on mbed TLS libraries + */ +#define TF_MBEDTLS_SHA256 1 +#define TF_MBEDTLS_SHA384 2 +#define TF_MBEDTLS_SHA512 3 + +/* * Configuration file to build mbed TLS with the required features for * Trusted Boot */ @@ -66,6 +73,9 @@ #endif #define MBEDTLS_SHA256_C +#if (TF_MBEDTLS_HASH_ALG_ID != TF_MBEDTLS_SHA256) +#define MBEDTLS_SHA512_C +#endif #define MBEDTLS_VERSION_C |