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:
parent
add9948784
commit
e64a46f466
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue