From ca7045d9049f8733ab8ce2926e0256f48a790963 Mon Sep 17 00:00:00 2001 From: Mahavir Jain Date: Tue, 24 Jan 2023 11:49:23 +0530 Subject: [PATCH] protocomm: Fix test-app build for esp32c2 & esp32c6 - AES context has a breaking change, rather than storing round keys directly, it stores the offset at which the keys are present in the context buffer --- components/protocomm/test/test_protocomm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/protocomm/test/test_protocomm.c b/components/protocomm/test/test_protocomm.c index 8fab4d1181..f0dbe5662a 100644 --- a/components/protocomm/test/test_protocomm.c +++ b/components/protocomm/test/test_protocomm.c @@ -557,7 +557,7 @@ static esp_err_t test_req_endpoint(session_t *session) // Check if the AES key is correctly set before calling the software encryption // API. Without this check, the code will crash, resulting in a test case failure. // For hardware AES, portability layer takes care of this. - if (session->ctx_aes.rk != NULL && session->ctx_aes.nr > 0) { + if (session->ctx_aes.MBEDTLS_PRIVATE(nr) > 0) { #endif mbedtls_aes_crypt_ctr(&session->ctx_aes, sizeof(rand_test_data), &session->nc_off,