summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShivangi <66447522+gshvang@users.noreply.github.com>2021-07-19 17:23:17 -0700
committerGitHub <noreply@github.com>2021-07-19 17:23:17 -0700
commit6c17a5468536a0b3dc404cbf9c43951fedc5a20d (patch)
treee7f94745bd20c105623027f28a7ee49132fc9305
parentaa1eed8b4e5eb446f10a2e54c8c75067a76d37b4 (diff)
downloadfreertos-git-6c17a5468536a0b3dc404cbf9c43951fedc5a20d.tar.gz
CorePKCS11 Muthual Auth demo fix (#656)
-rw-r--r--FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/core_pkcs11_config.h10
-rw-r--r--FreeRTOS-Plus/Demo/corePKCS11_MQTT_Mutual_Auth_Windows_Simulator/mbedtls_config.h1
2 files changed, 11 insertions, 0 deletions
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 c8f89bb5f..1d99a638b 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 e0a10fb90..f22003825 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,