Skip to content

Commit a98e74f

Browse files
committed
fix: user_settings.h: fix typo in ECC521 defines
1 parent ee4747e commit a98e74f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

include/user_settings.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ extern int tolower(int c);
137137
# define WOLFSSL_SP_384
138138
# elif defined(WOLFBOOT_SIGN_ECC521)
139139
# define HAVE_ECC521
140-
# define WOLFSSL_SP_512
140+
# define WOLFSSL_SP_521
141141
# endif
142142
/* FP MAX BITS */
143-
# if defined(HAVE_ECC512)
143+
# if defined(HAVE_ECC521)
144144
# define FP_MAX_BITS ((528 * 2))
145145
# elif defined(HAVE_ECC384)
146146
# define FP_MAX_BITS ((384 * 2))
@@ -153,11 +153,11 @@ extern int tolower(int c);
153153
# endif
154154

155155
# if !defined(USE_FAST_MATH) && !defined(WOLFSSL_SP_MATH_ALL)
156-
# if !defined(HAVE_ECC512)
157-
# define WOLFSSL_SP_NO_512
156+
# if !defined(HAVE_ECC521)
157+
# define WOLFSSL_SP_NO_521
158158
# endif
159159
# if !defined(HAVE_ECC384)
160-
# define WOLFSSL_SP_NO_383
160+
# define WOLFSSL_SP_NO_384
161161
# endif
162162
# if !defined(HAVE_ECC256)
163163
# define WOLFSSL_SP_NO_256

0 commit comments

Comments
 (0)