Remove MBEDTLS_TYPE_UDBL option

This commit is contained in:
Andres Amaya Garcia 2017-07-20 17:33:09 +01:00 committed by Simon Butcher
parent 6fb65864a2
commit de2e70431f
2 changed files with 1 additions and 16 deletions

View File

@ -19,9 +19,6 @@ API Changes
Changes
* Added config.h option MBEDTLS_NO_UDBL_DIVISION, to prevent the use of
64-bit division.
* Added config.h option MBEDTLS_TYPE_UDBL to allow configuring the
double-width integer type used in the bignum module when the compiler is
unknown.
Bugfix
* Add a check if iv_len is zero, and return an error if it is zero. reported

View File

@ -109,15 +109,6 @@
*
* Double-width integers (e.g. 128-bit in 64-bit architectures) can be
* disabled by defining MBEDTLS_NO_UDBL_DIVISION.
*
* The double-width integer types can be configured by defining
* MBEDTLS_TYPE_UDBL when the type cannot be automatically deduced by the
* library (e.g. the compiler is unknown). The definition of MBEDTLS_TYPE_UDBL
* must be a complete statement of the form:
* typedef <UDBL_TYPE> mbedtls_t_udbl <OTHER_DIRECTIVES>
* for example:
* #define MBEDTLS_TYPE_UDBL \
* typedef unsigned int mbedtls_t_udbl __attribute__((mode(TI)))
*/
#if !defined(MBEDTLS_HAVE_INT32)
#if defined(_MSC_VER) && defined(_M_AMD64)
@ -162,10 +153,6 @@
/* Force 64-bit integers with unknown compiler */
typedef int64_t mbedtls_mpi_sint;
typedef uint64_t mbedtls_mpi_uint;
#if !defined(MBEDTLS_NO_UDBL_DIVISION) && defined(MBEDTLS_TYPE_UDBL)
MBEDTLS_TYPE_UDBL;
#define MBEDTLS_HAVE_UDBL
#endif /* !MBEDTLS_NO_UDBL_DIVISION && MBEDTLS_TYPE_UDBL */
#endif
#endif /* !MBEDTLS_HAVE_INT32 */
@ -178,6 +165,7 @@
typedef uint32_t mbedtls_mpi_uint;
#if !defined(MBEDTLS_NO_UDBL_DIVISION)
typedef uint64_t mbedtls_t_udbl;
#define MBEDTLS_HAVE_UDBL
#endif /* !MBEDTLS_NO_UDBL_DIVISION */
#endif /* !MBEDTLS_HAVE_INT64 */