mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 21:05:37 +01:00
Fix indicative values of ops counts
Previous measurements were wrong due to counting multiplication by a small constant as a full multiplication, which it is not.
This commit is contained in:
parent
1c678e0e06
commit
9c5c78ff5c
@ -271,7 +271,7 @@ mbedtls_ecp_keypair;
|
||||
* \note A "basic operation" is roughly multiplication in GF(p),
|
||||
* or whatever takes a roughly equivalent amount of time.
|
||||
* As an indication, a scalar multiplication on P-256 is
|
||||
* of the order of 3600 "basic operations" with default
|
||||
* of the order of 3300 "basic operations" with default
|
||||
* settings.
|
||||
*
|
||||
* \warning Very low values are not always respected: sometimes
|
||||
|
@ -69,11 +69,11 @@ void ecp_test_vect_restart( int id,
|
||||
* change in the future. A factor 2 is a minimum safety margin.
|
||||
*
|
||||
* For reference, with mbed TLS 2.4 and default settings, for P-256:
|
||||
* - Random point mult: ~3600M
|
||||
* - Cold base point mult: ~3600M
|
||||
* - Hot base point mult: ~1200M
|
||||
* - Random point mult: ~3250M
|
||||
* - Cold base point mult: ~3300M
|
||||
* - Hot base point mult: ~1100M
|
||||
* With MBEDTLS_ECP_WINDOW_SIZE set to 2 (minimum):
|
||||
* - Random point mult: ~4200M
|
||||
* - Random point mult: ~3850M
|
||||
*/
|
||||
mbedtls_ecp_group grp;
|
||||
mbedtls_ecp_point R;
|
||||
|
Loading…
Reference in New Issue
Block a user