From d806d9da89a124a99afc1689e66269ae1ca63c76 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Tue, 13 Aug 2019 16:09:10 +0100 Subject: [PATCH] Use SHA-256 as single hardcoded hash in baremetal configuration --- configs/baremetal.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/baremetal.h b/configs/baremetal.h index 8bed9a8ae..4a17de072 100644 --- a/configs/baremetal.h +++ b/configs/baremetal.h @@ -52,6 +52,8 @@ #define MBEDTLS_SSL_CONF_SINGLE_SIG_HASH_MD_ID MBEDTLS_MD_SHA256 #define MBEDTLS_SSL_CONF_SINGLE_SIG_HASH_TLS_ID MBEDTLS_SSL_HASH_SHA256 +#define MBEDTLS_MD_SINGLE_HASH MBEDTLS_MD_INFO_SHA256 + /* Key exchanges */ #define MBEDTLS_KEY_EXCHANGE_ECDHE_ECDSA_ENABLED #define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8