From 219509d7d9874e0d25c65c7c1e620bcb19adf898 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Thu, 19 Jun 2025 09:56:28 +1000 Subject: [PATCH] SP int: modular exponentiation constant time Using a 1-bit window size for small exponentsisn't useful. --- wolfcrypt/src/sp_int.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/wolfcrypt/src/sp_int.c b/wolfcrypt/src/sp_int.c index b5c832d3e..cd1db57eb 100644 --- a/wolfcrypt/src/sp_int.c +++ b/wolfcrypt/src/sp_int.c @@ -14207,9 +14207,6 @@ static int _sp_exptmod_nct(const sp_int* b, const sp_int* e, const sp_int* m, if (bits > 450) { winBits = 6; } - else if (bits <= 21) { - winBits = 1; - } else if (bits <= 36) { winBits = 3; }