From 2dfc7eee89f9798d00c9f710b84f3868a3b30ae3 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Thu, 7 Aug 2025 10:26:34 -0500 Subject: [PATCH] wolfcrypt/src/sp_int.c: in _sp_exptmod_nct(), use 2 bit window if bits <= 21. --- wolfcrypt/src/sp_int.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/sp_int.c b/wolfcrypt/src/sp_int.c index b5c832d3e..5a8222a52 100644 --- a/wolfcrypt/src/sp_int.c +++ b/wolfcrypt/src/sp_int.c @@ -14208,7 +14208,7 @@ static int _sp_exptmod_nct(const sp_int* b, const sp_int* e, const sp_int* m, winBits = 6; } else if (bits <= 21) { - winBits = 1; + winBits = 2; } else if (bits <= 36) { winBits = 3;