Manuel Pégourié-Gonnard 054433c493 Add mbedtls_ecp_set_max_ops()
The plan is to count basic operations as follows:
- call to ecp_add_mixed()   -> 11
- call to ecp_double_jac()  -> 8
- call to mpi_mul_mpi()     -> 1
- call to mpi_inv_mod()     -> 120
- everything else           -> not counted

The counts for ecp_add_mixed() and ecp_double_jac() are based on the actual
number of calls to mpi_mul_mpi() they they make.

The count for mpi_inv_mod() is based on timing measurements on K64F and
LPC1768 boards, and are consistent with the usual very rough estimate of one
inversion = 100 multiplications. It could be useful to repeat that measurement
on a Cortex-M0 board as those have smaller divider and multipliers, so the
result could be a bit different but should be the same order of magnitude.

The documented limitation of 120 basic ops is due to the calls to mpi_inv_mod()
which are currently not interruptible nor planned to be so far.
2017-08-09 11:44:53 +02:00
..
2017-07-27 15:08:01 +01:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2017-07-27 15:08:01 +01:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2016-10-13 13:51:11 +01:00
2016-12-14 15:27:22 +00:00
2015-09-04 14:21:07 +02:00
2016-05-25 00:59:37 +01:00
2015-09-04 14:21:07 +02:00
2017-03-10 11:31:41 +00:00
2017-08-09 11:44:53 +02:00
2017-08-09 11:44:53 +02:00
2015-09-04 14:21:07 +02:00
2016-01-03 16:14:14 +00:00
2016-01-03 16:14:14 +00:00
2016-01-03 16:14:14 +00:00
2016-10-13 13:51:12 +01:00
2016-10-13 13:48:48 +01:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2015-09-04 14:21:07 +02:00
2015-10-05 11:41:36 +01:00
2015-09-04 14:21:07 +02:00
2016-01-03 16:14:14 +00:00
2017-07-27 15:08:01 +01:00
2015-09-04 14:21:07 +02:00
2017-06-08 10:12:16 +01:00
2015-09-04 14:21:07 +02:00
2015-09-25 04:27:22 +02:00
2017-06-20 23:08:10 +01:00
2015-09-04 14:21:07 +02:00