diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d92ee8f80..93e9d5247 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1736,4 +1736,4 @@ IT_015_01: <<: *test_template tags: - ESP32_IDF - - SSC_T2_4 \ No newline at end of file + - SSC_T2_4 diff --git a/components/esp32/hwcrypto/aes.c b/components/esp32/hwcrypto/aes.c index ce9a27658..e51e1aefc 100644 --- a/components/esp32/hwcrypto/aes.c +++ b/components/esp32/hwcrypto/aes.c @@ -425,7 +425,7 @@ static int esp_aes_xts_decode_keys( const unsigned char *key, return 0; } -int esp_aes_xts_setkey_enc( mbedtls_aes_xts_context *ctx, +int esp_aes_xts_setkey_enc( esp_aes_xts_context *ctx, const unsigned char *key, unsigned int keybits) { @@ -447,7 +447,7 @@ int esp_aes_xts_setkey_enc( mbedtls_aes_xts_context *ctx, return esp_aes_setkey( &ctx->crypt, key1, key1bits ); } -int esp_aes_xts_setkey_dec( mbedtls_aes_xts_context *ctx, +int esp_aes_xts_setkey_dec( esp_aes_xts_context *ctx, const unsigned char *key, unsigned int keybits) { @@ -526,7 +526,7 @@ static void esp_gf128mul_x_ble( unsigned char r[16], /* * AES-XTS buffer encryption/decryption */ -int esp_aes_crypt_xts( mbedtls_aes_xts_context *ctx, +int esp_aes_crypt_xts( esp_aes_xts_context *ctx, int mode, size_t length, const unsigned char data_unit[16], diff --git a/tools/unit-test-app/configs/aes_no_hw b/tools/unit-test-app/configs/aes_no_hw new file mode 100644 index 000000000..f890e3f81 --- /dev/null +++ b/tools/unit-test-app/configs/aes_no_hw @@ -0,0 +1,3 @@ +TEST_EXCLUDE_COMPONENTS=libsodium bt app_update +TEST_COMPONENTS=mbedtls +CONFIG_MBEDTLS_HARDWARE_AES=n