Merge pull request #7923 from gabor-mezei-arm/7598_fix_clone_of_ecp_module

[Bignum] Fixes for the ecp module cloning
This commit is contained in:
Tom Cosgrove 2023-07-17 15:28:18 +01:00 committed by GitHub
commit 08b04b11ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -3650,4 +3650,4 @@ mbedtls_ecp_variant mbedtls_ecp_get_variant()
#endif /* MBEDTLS_ECP_LIGHT */
#endif /* MBEDTLS_ECP_WITH_MPI_UINT */
#endif /* !MBEDTLS_ECP_WITH_MPI_UINT */

View file

@ -1631,12 +1631,12 @@ exit:
}
/* END_CASE */
/* BEGIN_CASE depends_on:MBEDTLS_TEST_HOOKS */
/* BEGIN_CASE depends_on:MBEDTLS_TEST_HOOKS:MBEDTLS_ECP_LIGHT */
void check_variant()
{
mbedtls_ecp_variant variant = mbedtls_ecp_get_variant();
#if defined(MBEDTLS_ECP_VARIANT_WITH_MPI_UINT)
#if defined(MBEDTLS_ECP_WITH_MPI_UINT)
TEST_EQUAL(variant, MBEDTLS_ECP_VARIANT_WITH_MPI_UINT);
#else
TEST_EQUAL(variant, MBEDTLS_ECP_VARIANT_WITH_MPI_STRUCT);