mbedtls: enable all tests except SHA for ESP32-C2

This commit is contained in:
Mahavir Jain
2022-06-03 18:01:31 +05:30
parent aa2cf79e13
commit fc43533859
7 changed files with 0 additions and 39 deletions

View File

@@ -24,8 +24,6 @@
#define PRINT_DEBUG_INFO
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5141
/* Taken from openssl s_client -connect api.gigafive.com:443 -showcerts
*/
static const char *rsa4096_cert = "-----BEGIN CERTIFICATE-----\n"\
@@ -114,7 +112,6 @@ static const char *rsa2048_cert = "-----BEGIN CERTIFICATE-----\n"\
/* Some random input bytes to public key encrypt */
static const uint8_t pki_input[4096/8] = {
0, 1, 4, 6, 7, 9, 33, 103, 49, 11, 56, 211, 67, 92 };
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
/* Result of an RSA4096 operation using cert's public key
(raw PKI, no padding/etc) */
@@ -330,8 +327,6 @@ _Static_assert(sizeof(pki_rsa4096_output) == 4096/8, "rsa4096 output is wrong si
void mbedtls_mpi_printf(const char *name, const mbedtls_mpi *X);
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5141
static void test_cert(const char *cert, const uint8_t *expected_output, size_t output_len);
TEST_CASE("mbedtls RSA4096 cert", "[mbedtls]")
@@ -401,7 +396,6 @@ static void test_cert(const char *cert, const uint8_t *expected_output, size_t o
mbedtls_x509_crt_free(&crt);
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
#ifdef CONFIG_MBEDTLS_HARDWARE_MPI
static void rsa_key_operations(int keysize, bool check_performance, bool generate_new_rsa);
@@ -541,8 +535,6 @@ static void rsa_key_operations(int keysize, bool check_performance, bool generat
#endif // CONFIG_MBEDTLS_HARDWARE_MPI
#if !TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)
//IDF-5141
TEST_CASE("mbedtls RSA Generate Key", "[mbedtls][timeout=60]")
{
@@ -580,4 +572,3 @@ TEST_CASE("mbedtls RSA Generate Key", "[mbedtls][timeout=60]")
#endif //CONFIG_MBEDTLS_MPI_USE_INTERRUPT
}
#endif //!TEMPORARY_DISABLED_FOR_TARGETS(ESP32C2)