mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(mbedtls): updates crypto performance numbers
This commit is contained in:
@@ -187,3 +187,6 @@
|
||||
#if SOC_AES_SUPPORTED
|
||||
#define MBEDTLS_AES_FEWER_TABLES
|
||||
#endif
|
||||
|
||||
/* ESP-TEE is single threaded so we can disable threading in mbedTLS */
|
||||
#undef MBEDTLS_THREADING_C
|
||||
|
||||
@@ -37,7 +37,7 @@ TEST_CASE("psa SHA256 performance", "[mbedtls]")
|
||||
TEST_ASSERT_NOT_NULL(buf);
|
||||
memset(buf, 0x55, CALL_SZ);
|
||||
|
||||
ccomp_timer_start();
|
||||
TEST_ESP_OK(ccomp_timer_start());
|
||||
for (int c = 0; c < CALLS; c++) {
|
||||
status = psa_hash_update(&operation, buf, CALL_SZ);
|
||||
TEST_ASSERT_EQUAL(PSA_SUCCESS, status);
|
||||
@@ -46,6 +46,7 @@ TEST_CASE("psa SHA256 performance", "[mbedtls]")
|
||||
status = psa_hash_finish(&operation, sha256, sizeof(sha256), &hash_length);
|
||||
TEST_ASSERT_EQUAL(PSA_SUCCESS, status);
|
||||
elapsed_usec = ccomp_timer_stop();
|
||||
TEST_ASSERT_GREATER_THAN(0, elapsed_usec);
|
||||
|
||||
free(buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user