Skip to content

Commit c1a1abe

Browse files
author
Andres Amaya Garcia
committed
benchmark: Make CTR_DRBG fail on feature unavailable
1 parent 52ffc01 commit c1a1abe

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

benchmark/main.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -795,12 +795,7 @@ MBED_NOINLINE static int benchmark_ctr_drbg()
795795
mbedtls_ctr_drbg_init(&ctr_drbg);
796796

797797
ret = mbedtls_ctr_drbg_seed(&ctr_drbg, myrand, NULL, NULL, 0);
798-
if (ret == MBEDTLS_ERR_AES_FEATURE_UNAVAILABLE) {
799-
/* Do not consider this as a failure */
800-
mbedtls_printf(HEADER_FORMAT "Feature unavailable\n", nopr_title);
801-
mbedtls_printf(HEADER_FORMAT "Feature unavailable\n", pr_title);
802-
goto exit;
803-
} else if (ret != 0) {
798+
if (ret != 0) {
804799
PRINT_ERROR(ret, "mbedtls_ctr_drbg_seed()");
805800
goto exit;
806801
}

0 commit comments

Comments
 (0)