- Removed conversions to int when not needed to prevent signed / unsigned situations

- Maximized mpi limb size
This commit is contained in:
Paul Bakker 2011-05-05 10:00:45 +00:00
parent 31cacd7cf8
commit f968857a82
2 changed files with 14 additions and 6 deletions

View file

@ -40,6 +40,11 @@
#define MPI_CHK(f) if( ( ret = f ) != 0 ) goto cleanup
/*
* Maximum size MPIs are allowed to grow to in number of limbs.
*/
#define POLARSSL_MPI_MAX_LIMBS 10000
/*
* Define the base integer type, architecture-wise
*/
@ -526,7 +531,7 @@ int mpi_is_prime( mpi *X, int (*f_rng)(void *), void *p_rng );
* \brief Prime number generation
*
* \param X Destination MPI
* \param nbits Required size of X in bits
* \param nbits Required size of X in bits ( 3 <= nbits <= 4096 )
* \param dh_flag If 1, then (X-1)/2 will be prime too
* \param f_rng RNG function
* \param p_rng RNG parameter