From a98e74fa334e9fdfe652adbee32b807ceb20a81d Mon Sep 17 00:00:00 2001 From: Marco Oliverio Date: Mon, 29 Apr 2024 12:50:37 +0200 Subject: [PATCH] fix: user_settings.h: fix typo in ECC521 defines --- include/user_settings.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/user_settings.h b/include/user_settings.h index 575f51af3..c9d7a930b 100644 --- a/include/user_settings.h +++ b/include/user_settings.h @@ -137,10 +137,10 @@ extern int tolower(int c); # define WOLFSSL_SP_384 # elif defined(WOLFBOOT_SIGN_ECC521) # define HAVE_ECC521 -# define WOLFSSL_SP_512 +# define WOLFSSL_SP_521 # endif /* FP MAX BITS */ -# if defined(HAVE_ECC512) +# if defined(HAVE_ECC521) # define FP_MAX_BITS ((528 * 2)) # elif defined(HAVE_ECC384) # define FP_MAX_BITS ((384 * 2)) @@ -153,11 +153,11 @@ extern int tolower(int c); # endif # if !defined(USE_FAST_MATH) && !defined(WOLFSSL_SP_MATH_ALL) -# if !defined(HAVE_ECC512) -# define WOLFSSL_SP_NO_512 +# if !defined(HAVE_ECC521) +# define WOLFSSL_SP_NO_521 # endif # if !defined(HAVE_ECC384) -# define WOLFSSL_SP_NO_383 +# define WOLFSSL_SP_NO_384 # endif # if !defined(HAVE_ECC256) # define WOLFSSL_SP_NO_256