mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-25 21:45:47 +01:00
Fix deprecated references to POLARSSL_CONFIG_OPTIONS
This commit is contained in:
parent
05c3774bd4
commit
770268f2b3
@ -69,7 +69,7 @@ typedef UINT64 uint64_t;
|
|||||||
*/
|
*/
|
||||||
#define POLARSSL_MPI_MAX_LIMBS 10000
|
#define POLARSSL_MPI_MAX_LIMBS 10000
|
||||||
|
|
||||||
#if !defined(POLARSSL_CONFIG_OPTIONS)
|
#if !defined(POLARSSL_MPI_WINDOW_SIZE)
|
||||||
/*
|
/*
|
||||||
* Maximum window size used for modular exponentiation. Default: 6
|
* Maximum window size used for modular exponentiation. Default: 6
|
||||||
* Minimum value: 1. Maximum value: 6.
|
* Minimum value: 1. Maximum value: 6.
|
||||||
@ -80,7 +80,9 @@ typedef UINT64 uint64_t;
|
|||||||
* Reduction in size, reduces speed.
|
* Reduction in size, reduces speed.
|
||||||
*/
|
*/
|
||||||
#define POLARSSL_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
|
#define POLARSSL_MPI_WINDOW_SIZE 6 /**< Maximum windows size used. */
|
||||||
|
#endif /* !POLARSSL_MPI_WINDOW_SIZE */
|
||||||
|
|
||||||
|
#if !defined(POLARSSL_MPI_MAX_SIZE)
|
||||||
/*
|
/*
|
||||||
* Maximum size of MPIs allowed in bits and bytes for user-MPIs.
|
* Maximum size of MPIs allowed in bits and bytes for user-MPIs.
|
||||||
* ( Default: 512 bytes => 4096 bits, Maximum tested: 2048 bytes => 16384 bits )
|
* ( Default: 512 bytes => 4096 bits, Maximum tested: 2048 bytes => 16384 bits )
|
||||||
@ -89,8 +91,7 @@ typedef UINT64 uint64_t;
|
|||||||
* of limbs required (POLARSSL_MPI_MAX_LIMBS) is higher.
|
* of limbs required (POLARSSL_MPI_MAX_LIMBS) is higher.
|
||||||
*/
|
*/
|
||||||
#define POLARSSL_MPI_MAX_SIZE 512 /**< Maximum number of bytes for usable MPIs. */
|
#define POLARSSL_MPI_MAX_SIZE 512 /**< Maximum number of bytes for usable MPIs. */
|
||||||
|
#endif /* !POLARSSL_MPI_MAX_SIZE */
|
||||||
#endif /* !POLARSSL_CONFIG_OPTIONS */
|
|
||||||
|
|
||||||
#define POLARSSL_MPI_MAX_BITS ( 8 * POLARSSL_MPI_MAX_SIZE ) /**< Maximum number of bits for usable MPIs. */
|
#define POLARSSL_MPI_MAX_BITS ( 8 * POLARSSL_MPI_MAX_SIZE ) /**< Maximum number of bits for usable MPIs. */
|
||||||
|
|
||||||
|
@ -84,12 +84,12 @@
|
|||||||
#error "POLARSSL_ENTROPY_C defined, but not all prerequisites"
|
#error "POLARSSL_ENTROPY_C defined, but not all prerequisites"
|
||||||
#endif
|
#endif
|
||||||
#if defined(POLARSSL_ENTROPY_C) && defined(POLARSSL_SHA512_C) && \
|
#if defined(POLARSSL_ENTROPY_C) && defined(POLARSSL_SHA512_C) && \
|
||||||
defined(POLARSSL_CONFIG_OPTIONS) && (CTR_DRBG_ENTROPY_LEN > 64)
|
defined(CTR_DRBG_ENTROPY_LEN) && (CTR_DRBG_ENTROPY_LEN > 64)
|
||||||
#error "CTR_DRBG_ENTROPY_LEN value too high"
|
#error "CTR_DRBG_ENTROPY_LEN value too high"
|
||||||
#endif
|
#endif
|
||||||
#if defined(POLARSSL_ENTROPY_C) && \
|
#if defined(POLARSSL_ENTROPY_C) && \
|
||||||
( !defined(POLARSSL_SHA512_C) || defined(POLARSSL_ENTROPY_FORCE_SHA256) ) \
|
( !defined(POLARSSL_SHA512_C) || defined(POLARSSL_ENTROPY_FORCE_SHA256) ) \
|
||||||
&& defined(POLARSSL_CONFIG_OPTIONS) && (CTR_DRBG_ENTROPY_LEN > 32)
|
&& defined(CTR_DRBG_ENTROPY_LEN) && (CTR_DRBG_ENTROPY_LEN > 32)
|
||||||
#error "CTR_DRBG_ENTROPY_LEN value too high"
|
#error "CTR_DRBG_ENTROPY_LEN value too high"
|
||||||
#endif
|
#endif
|
||||||
#if defined(POLARSSL_ENTROPY_C) && \
|
#if defined(POLARSSL_ENTROPY_C) && \
|
||||||
|
Loading…
Reference in New Issue
Block a user