Skip to content

Commit d4840d8

Browse files
committed
wolfssl/wolfcrypt/sp_int.h: for sp-math-all with RSA or DH, raise default SP_INT_BITS from 3072 to 4096, to support 2k RSA.
1 parent c8867d8 commit d4840d8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

wolfssl/wolfcrypt/sp_int.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,11 +423,9 @@ typedef struct sp_ecc_ctx {
423423
#define SP_INT_BITS 8192
424424
#elif !defined(NO_DH) && defined(HAVE_FFDHE_6144)
425425
#define SP_INT_BITS 6144
426-
#elif !defined(NO_DH) && defined(HAVE_FFDHE_4096)
427-
#define SP_INT_BITS 4096
428426
#else
429-
/* Default to max 3072 for general RSA and DH. */
430-
#define SP_INT_BITS 3072
427+
/* Default to max 4096 for general RSA and DH. */
428+
#define SP_INT_BITS 4096
431429
#endif
432430
#elif defined(WOLFCRYPT_HAVE_SAKKE)
433431
#define SP_INT_BITS 1024

0 commit comments

Comments
 (0)