mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
Fix exponentiation tests with MBEDTLS_MPI_MAX_BITS
larger than 256
Fixes an issue where configs that had `MBEDTLS_MPI_MAX_BITS` greater than 256 but smaller than the test that was running (792 bits) the test would fail incorrectly. Signed-off-by: Chris Jones <christopher.jones@arm.com>
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
/* BEGIN_HEADER */
|
||||
#include "mbedtls/bignum.h"
|
||||
|
||||
#if MBEDTLS_MPI_MAX_BITS > 256
|
||||
#define MPI_MAX_BITS_LARGER_THAN_256
|
||||
#if MBEDTLS_MPI_MAX_BITS > 792
|
||||
#define MPI_MAX_BITS_LARGER_THAN_792
|
||||
#endif
|
||||
|
||||
typedef struct mbedtls_test_mpi_random
|
||||
|
Reference in New Issue
Block a user