Fix bug in user_settings.h which was incorrectly setting FP_MAX_BITS to 512 when RSA was enabled. This resulted in RSA_FUNCTION MP_EXPTMOD_E: memory/config problem.

This commit is contained in:
David Garske
2017-09-21 14:35:28 -07:00
parent 614736cbb2
commit 6058362970

View File

@@ -124,7 +124,7 @@ extern "C" {
/* Use alternate ECC size for ECC math */ /* Use alternate ECC size for ECC math */
#ifdef USE_FAST_MATH #ifdef USE_FAST_MATH
#ifndef NO_RSA #ifdef NO_RSA
/* if not using RSA set FP_MAX_BITS to 256*2 */ /* if not using RSA set FP_MAX_BITS to 256*2 */
#undef FP_MAX_BITS #undef FP_MAX_BITS
#define FP_MAX_BITS 512 #define FP_MAX_BITS 512