Increase MPI_MAX_BYTES to allow RSA 8192

This commit is contained in:
Manuel Pégourié-Gonnard 2014-09-08 17:03:50 +02:00
parent 5a5fa92bfe
commit da1b4de0e4
6 changed files with 10 additions and 8 deletions

View file

@ -90,7 +90,7 @@ typedef UINT64 uint64_t;
* Note: Calculations can results temporarily in larger MPIs. So the number
* 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 1024 /**< Maximum number of bytes for usable MPIs. */
#endif /* !POLARSSL_MPI_MAX_SIZE */
#define POLARSSL_MPI_MAX_BITS ( 8 * POLARSSL_MPI_MAX_SIZE ) /**< Maximum number of bits for usable MPIs. */