mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 20:24:32 +02:00
Merge branch 'bugfix/unused_myrand_test_rsa' into 'master'
rsa test: fix a warning See merge request espressif/esp-idf!6617
This commit is contained in:
@@ -241,14 +241,14 @@ static void test_cert(const char *cert, const uint8_t *expected_output, size_t o
|
|||||||
mbedtls_x509_crt_free(&crt);
|
mbedtls_x509_crt_free(&crt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_MBEDTLS_HARDWARE_MPI
|
||||||
|
|
||||||
static int myrand(void *rng_state, unsigned char *output, size_t len)
|
static int myrand(void *rng_state, unsigned char *output, size_t len)
|
||||||
{
|
{
|
||||||
size_t olen;
|
size_t olen;
|
||||||
return mbedtls_hardware_poll(rng_state, output, len, &olen);
|
return mbedtls_hardware_poll(rng_state, output, len, &olen);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_MBEDTLS_HARDWARE_MPI
|
|
||||||
|
|
||||||
TEST_CASE("test performance RSA key operations", "[bignum][ignore]")
|
TEST_CASE("test performance RSA key operations", "[bignum][ignore]")
|
||||||
{
|
{
|
||||||
mbedtls_rsa_context rsa;
|
mbedtls_rsa_context rsa;
|
||||||
|
Reference in New Issue
Block a user