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:
Manuel Pégourié-Gonnard 2017-03-20 14:13:07 +01:00
parent 1c678e0e06
commit 9c5c78ff5c
2 changed files with 5 additions and 5 deletions

View File

@ -271,7 +271,7 @@ mbedtls_ecp_keypair;
* \note A "basic operation" is roughly multiplication in GF(p), * \note A "basic operation" is roughly multiplication in GF(p),
* or whatever takes a roughly equivalent amount of time. * or whatever takes a roughly equivalent amount of time.
* As an indication, a scalar multiplication on P-256 is * 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. * settings.
* *
* \warning Very low values are not always respected: sometimes * \warning Very low values are not always respected: sometimes

View File

@ -69,11 +69,11 @@ void ecp_test_vect_restart( int id,
* change in the future. A factor 2 is a minimum safety margin. * 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: * For reference, with mbed TLS 2.4 and default settings, for P-256:
* - Random point mult: ~3600M * - Random point mult: ~3250M
* - Cold base point mult: ~3600M * - Cold base point mult: ~3300M
* - Hot base point mult: ~1200M * - Hot base point mult: ~1100M
* With MBEDTLS_ECP_WINDOW_SIZE set to 2 (minimum): * With MBEDTLS_ECP_WINDOW_SIZE set to 2 (minimum):
* - Random point mult: ~4200M * - Random point mult: ~3850M
*/ */
mbedtls_ecp_group grp; mbedtls_ecp_group grp;
mbedtls_ecp_point R; mbedtls_ecp_point R;