-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce the default MBEDTLS_ECP_WINDOW_SIZE value to 2
As tested in #6790, after introducing side-channel counter-measures to bignum, the performance of RSA decryption in correlation to the MBEDTLS_ECP_WINDOW_SIZE has changed. The default value of 2 has been chosen as it provides best or close-to-best results for tests on Cortex-M4 and Intel i7. Signed-off-by: Andrzej Kurek <[email protected]>
- Loading branch information
Andrzej Kurek
committed
Feb 24, 2023
1 parent
4dcc08c
commit 6e9385b
Showing
3 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Changes | ||
* Changed the default MBEDTLS_ECP_WINDOW_SIZE from 6 to 2. | ||
As tested in issue 6790, the correlation between this define and | ||
RSA decryption performance has changed lately due to security fixes. | ||
To fix the performance degradation when using default values the | ||
window was reduced from 6 to 2, a value that gives the best or close | ||
to best results when tested on Cortex-M4 and Intel i7. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters