mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-03 10:34:16 -04:00
Update bignum_core.c
Co-authored-by: Gilles Peskine <gilles.peskine@arm.com> Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
7e1e7be8fc
commit
b7b8c09c81
@ -84,9 +84,9 @@ static mbedtls_mpi_uint mpi_bigendian_to_host(mbedtls_mpi_uint a)
|
|||||||
return a;
|
return a;
|
||||||
} else {
|
} else {
|
||||||
#if defined(MBEDTLS_HAVE_INT32)
|
#if defined(MBEDTLS_HAVE_INT32)
|
||||||
return (mbedtls_mpi_uint) MBEDTLS_BSWAP32((uint32_t) a);
|
return (mbedtls_mpi_uint) MBEDTLS_BSWAP32(a);
|
||||||
#elif defined(MBEDTLS_HAVE_INT64)
|
#elif defined(MBEDTLS_HAVE_INT64)
|
||||||
return (mbedtls_mpi_uint) MBEDTLS_BSWAP64((uint64_t) a);
|
return (mbedtls_mpi_uint) MBEDTLS_BSWAP64(a);
|
||||||
#else
|
#else
|
||||||
#error "This is one of several places that need to be adapted to support a new limb size"
|
#error "This is one of several places that need to be adapted to support a new limb size"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user