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

Test would take too long and time out on C2.
This commit is contained in:
Marius Vikhammer
2022-06-28 09:39:43 +08:00
parent 0b0befc2a6
commit 61691e332f

View File

@@ -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