]> granicus.if.org Git - esp-idf/commitdiff
mbedtls: Fix compilation errors when CONFIG_MBEDTLS_HARDWARE_AES is disabled
authorSagar Bijwe <sagar@espressif.com>
Wed, 17 Oct 2018 13:53:46 +0000 (19:23 +0530)
committerSagar Bijwe <sagar@espressif.com>
Thu, 1 Nov 2018 06:38:45 +0000 (12:08 +0530)
.gitlab-ci.yml
components/esp32/hwcrypto/aes.c
tools/unit-test-app/configs/aes_no_hw [new file with mode: 0644]

index 897e612173f94772392ef17e9a5b855b7840e7b6..f7687bfca4651a43ad1edc7122270668f9d5ccfd 100644 (file)
@@ -1187,6 +1187,12 @@ UT_001_38:
     - ESP32_IDF
     - UT_T1_1
 
+UT_001_39:
+  <<: *unit_test_template
+  tags:
+    - ESP32_IDF
+    - UT_T1_1
+
 UT_002_01:
   <<: *unit_test_template
   tags:
@@ -1719,4 +1725,4 @@ IT_015_01:
   <<: *test_template
   tags:
     - ESP32_IDF
-    - SSC_T2_4
\ No newline at end of file
+    - SSC_T2_4
index 9c449d821c92f69c97e47a7dceb84c41ab63fe26..a14dc51ed5d26197c1743ab43c1c9b954ddb8997 100644 (file)
@@ -431,7 +431,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)
 {
@@ -453,7 +453,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)
 {
@@ -532,7 +532,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 (file)
index 0000000..f890e3f
--- /dev/null
@@ -0,0 +1,3 @@
+TEST_EXCLUDE_COMPONENTS=libsodium bt app_update
+TEST_COMPONENTS=mbedtls
+CONFIG_MBEDTLS_HARDWARE_AES=n