RSA: only run generate key test if we have MPI HW support

Test would take too long and time out on C2.
pull/9328/head
Marius Vikhammer 2022-06-28 09:39:43 +08:00
rodzic 0b0befc2a6
commit 61691e332f
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -559,7 +559,6 @@ static void rsa_key_operations(int keysize, bool check_performance, bool generat
mbedtls_rsa_free(&rsa);
}
#endif // CONFIG_MBEDTLS_HARDWARE_MPI
TEST_CASE("mbedtls RSA Generate Key", "[mbedtls][timeout=60]")
{
@ -598,3 +597,5 @@ TEST_CASE("mbedtls RSA Generate Key", "[mbedtls][timeout=60]")
#endif //CONFIG_MBEDTLS_MPI_USE_INTERRUPT
}
#endif // CONFIG_MBEDTLS_HARDWARE_MPI