From 6c17a5468536a0b3dc404cbf9c43951fedc5a20d Mon Sep 17 00:00:00 2001 From: Shivangi <66447522+gshvang@users.noreply.github.com> Date: Mon, 19 Jul 2021 17:23:17 -0700 Subject: [PATCH] CorePKCS11 Muthual Auth demo fix (#656) --- .../core_pkcs11_config.h | 10 ++++++++++ .../mbedtls_config.h | 1 + 2 files changed, 11 insertions(+) diff --git a/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/core_pkcs11_config.h b/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/core_pkcs11_config.h index c8f89bb5f4..1d99a638b4 100644 --- a/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/core_pkcs11_config.h +++ b/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/core_pkcs11_config.h @@ -193,4 +193,14 @@ extern void vLoggingPrintf( const char * pcFormatString, */ #define pkcs11configLABEL_ROOT_CERTIFICATE ( "Root Cert" ) +/** + * @brief The PKCS #11 label for the object to be used for HMAC operations. + */ +#define pkcs11configLABEL_HMAC_KEY "HMAC Key" + + /** + * @brief The PKCS #11 label for the object to be used for CMAC operations. + */ +#define pkcs11configLABEL_CMAC_KEY "CMAC Key" + #endif /* _CORE_PKCS11_CONFIG_H_ include guard. */ diff --git a/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/mbedtls_config.h b/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/mbedtls_config.h index e0a10fb90e..f220038252 100644 --- a/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/mbedtls_config.h +++ b/FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/mbedtls_config.h @@ -107,6 +107,7 @@ #define MBEDTLS_THREADING_C #define MBEDTLS_X509_USE_C #define MBEDTLS_X509_CRT_PARSE_C +#define MBEDTLS_CMAC_C /* Set the memory allocation functions on FreeRTOS. */ void * mbedtls_platform_calloc( size_t nmemb,