mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 08:05:45 +01:00
Remove MBEDTLS_TYPE_UDBL option
This commit is contained in:
parent
6fb65864a2
commit
de2e70431f
@ -19,9 +19,6 @@ API Changes
|
|||||||
Changes
|
Changes
|
||||||
* Added config.h option MBEDTLS_NO_UDBL_DIVISION, to prevent the use of
|
* Added config.h option MBEDTLS_NO_UDBL_DIVISION, to prevent the use of
|
||||||
64-bit division.
|
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
|
Bugfix
|
||||||
* Add a check if iv_len is zero, and return an error if it is zero. reported
|
* Add a check if iv_len is zero, and return an error if it is zero. reported
|
||||||
|
@ -109,15 +109,6 @@
|
|||||||
*
|
*
|
||||||
* Double-width integers (e.g. 128-bit in 64-bit architectures) can be
|
* Double-width integers (e.g. 128-bit in 64-bit architectures) can be
|
||||||
* disabled by defining MBEDTLS_NO_UDBL_DIVISION.
|
* 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(MBEDTLS_HAVE_INT32)
|
||||||
#if defined(_MSC_VER) && defined(_M_AMD64)
|
#if defined(_MSC_VER) && defined(_M_AMD64)
|
||||||
@ -162,10 +153,6 @@
|
|||||||
/* Force 64-bit integers with unknown compiler */
|
/* Force 64-bit integers with unknown compiler */
|
||||||
typedef int64_t mbedtls_mpi_sint;
|
typedef int64_t mbedtls_mpi_sint;
|
||||||
typedef uint64_t mbedtls_mpi_uint;
|
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
|
||||||
#endif /* !MBEDTLS_HAVE_INT32 */
|
#endif /* !MBEDTLS_HAVE_INT32 */
|
||||||
|
|
||||||
@ -178,6 +165,7 @@
|
|||||||
typedef uint32_t mbedtls_mpi_uint;
|
typedef uint32_t mbedtls_mpi_uint;
|
||||||
#if !defined(MBEDTLS_NO_UDBL_DIVISION)
|
#if !defined(MBEDTLS_NO_UDBL_DIVISION)
|
||||||
typedef uint64_t mbedtls_t_udbl;
|
typedef uint64_t mbedtls_t_udbl;
|
||||||
|
#define MBEDTLS_HAVE_UDBL
|
||||||
#endif /* !MBEDTLS_NO_UDBL_DIVISION */
|
#endif /* !MBEDTLS_NO_UDBL_DIVISION */
|
||||||
#endif /* !MBEDTLS_HAVE_INT64 */
|
#endif /* !MBEDTLS_HAVE_INT64 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user