This is an automated email from the ASF dual-hosted git repository.

sjanc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 06bffc7b950a09b6e09d835750be44530d378043
Author: Szymon Janc <[email protected]>
AuthorDate: Thu Jun 11 14:36:20 2026 +0200

    apps/crypto_test: Remove Tinycrypt support
    
    Tinycrypt is going to be removed from tree.
---
 apps/crypto_test/pkg.yml    |  1 -
 apps/crypto_test/src/main.c | 11 -----------
 apps/crypto_test/syscfg.yml |  2 +-
 3 files changed, 1 insertion(+), 13 deletions(-)

diff --git a/apps/crypto_test/pkg.yml b/apps/crypto_test/pkg.yml
index 0a5c38f8d..72aa71a02 100644
--- a/apps/crypto_test/pkg.yml
+++ b/apps/crypto_test/pkg.yml
@@ -27,4 +27,3 @@ pkg.deps:
     - "@apache-mynewt-core/sys/console"
     - "@apache-mynewt-core/sys/log"
     - "@apache-mynewt-core/crypto/mbedtls"
-    - "@apache-mynewt-core/crypto/tinycrypt"
diff --git a/apps/crypto_test/src/main.c b/apps/crypto_test/src/main.c
index 761961c0f..efa526317 100755
--- a/apps/crypto_test/src/main.c
+++ b/apps/crypto_test/src/main.c
@@ -25,7 +25,6 @@
 #include "console/console.h"
 #include "crypto/crypto.h"
 #include "mbedtls/aes.h"
-#include "tinycrypt/aes.h"
 
 #include <mbedtls/gcm_mynewt.h>
 
@@ -364,12 +363,6 @@ mbed_enc_block(void *data, const uint8_t *input, uint8_t 
*output)
             MBEDTLS_AES_ENCRYPT, input, output);
 }
 
-static void
-tc_enc_block(void *data, const uint8_t *input, uint8_t *output)
-{
-    (void)tc_aes_encrypt(output, input, (TCAesKeySched_t)data);
-}
-
 static void
 run_benchmark(char *name, block_encrypt_func_t encfn, void *data, uint8_t iter)
 {
@@ -948,7 +941,6 @@ mynewt_main(int argc, char **argv)
     struct crypto_dev *crypto;
 #if MYNEWT_VAL(CRYPTOTEST_BENCHMARK)
     mbedtls_aes_context mbed_aes;
-    struct tc_aes_key_sched_struct tc_aes;
     int iterations;
 #endif
 #if RUN_VECTOR_TESTS || MYNEWT_VAL(CRYPTOTEST_BENCHMARK)
@@ -985,14 +977,11 @@ mynewt_main(int argc, char **argv)
     mbedtls_aes_init(&mbed_aes);
     mbedtls_aes_setkey_enc(&mbed_aes, aes_128_key, 128);
 
-    tc_aes128_set_encrypt_key(&tc_aes, aes_128_key);
-
     iterations = 30;
     for (i = 1; i <= 3; i++) {
         printf("\n=== Benchmarks - iteration %d ===\n", i);
         run_benchmark("CRYPTO", crypto_enc_block, crypto, iterations);
         run_benchmark("MBEDTLS", mbed_enc_block, &mbed_aes, iterations);
-        run_benchmark("TINYCRYPT", tc_enc_block, &tc_aes, iterations);
         os_time_delay(OS_TICKS_PER_SEC);
     }
 
diff --git a/apps/crypto_test/syscfg.yml b/apps/crypto_test/syscfg.yml
index ab9054848..ee9a55248 100644
--- a/apps/crypto_test/syscfg.yml
+++ b/apps/crypto_test/syscfg.yml
@@ -40,7 +40,7 @@ syscfg.defs:
         description: Enable concurrency test
         value: 1
     CRYPTOTEST_BENCHMARK:
-        description: Enable benchmark against tinycrypt/mbedTLS
+        description: Enable benchmark against mbedTLS
         value: 1
 
 syscfg.vals:

Reply via email to