Merge pull request #13478 from Staars/patch-1

Fix ESP32-Homekit for IDF>4
This commit is contained in:
Theo Arends 2021-10-26 21:52:35 +02:00 committed by GitHub
commit 84da143a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -151,7 +151,7 @@ cleanup:
#if ESP_IDF_VERSION <= ESP_IDF_VERSION_VAL(4, 0, 0)
/* Z = (X * Y) mod M
Not an mbedTLS function
@ -193,6 +193,8 @@ cleanup:
return ret;
}
#endif // ESP_IDF_VERSION <= ESP_IDF_VERSION_VAL(4, 0, 0)
#if defined(MBEDTLS_MPI_EXP_MOD_ALT)
#ifdef ESP_MPI_USE_MONT_EXP
@ -374,6 +376,7 @@ cleanup:
static int mpi_mult_mpi_failover_mod_mult( mbedtls_mpi *Z, const mbedtls_mpi *X, const mbedtls_mpi *Y, size_t z_words);
static int mpi_mult_mpi_overlong(mbedtls_mpi *Z, const mbedtls_mpi *X, const mbedtls_mpi *Y, size_t y_words, size_t z_words);
#if ESP_IDF_VERSION <= ESP_IDF_VERSION_VAL(4, 0, 0)
/* Z = X * Y */
int mbedtls_mpi_mul_mpi( mbedtls_mpi *Z, const mbedtls_mpi *X, const mbedtls_mpi *Y )
{
@ -447,6 +450,7 @@ int mbedtls_mpi_mul_mpi( mbedtls_mpi *Z, const mbedtls_mpi *X, const mbedtls_mpi
cleanup:
return ret;
}
#endif //ESP_IDF_VERSION <= ESP_IDF_VERSION_VAL(4, 0, 0)