Gilles Peskine
8fd95c6757
Perform mbedtls_mpi_mul_int in place if possible
...
Rewrite mbedtls_mpi_mul_int to call mpi_mul_hlp directly rather than
create a temporary mpi object. This has the benefit of not performing
an allocation when the multiplication is in place (mpi operand aliased
with the result) and the result mpi is large enough.
This saves about 40% of the calloc() calls in test_suite_ecp. There is
no measurable performance difference on my Linux PC.
The cost is a few bytes in bignum.o.
When there is no aliasing, or when there is aliasing but the mpi
object needs to be enlarged, the performance difference is negligible.
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2020-12-07 22:51:25 +01:00
..
2015-06-25 10:59:56 +02:00
2020-11-09 20:44:08 +01:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-12-07 22:51:25 +01:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-10-08 12:09:44 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-11-30 21:06:05 -08:00
2020-11-06 09:40:21 +01:00
2020-08-19 10:35:41 +02:00
2020-11-25 01:13:12 -03:00
2020-10-20 13:44:44 +01:00
2020-08-19 10:35:41 +02:00
2020-11-25 14:25:56 -08:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-20 11:07:12 +01:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-12-07 22:51:25 +01:00
2020-09-30 17:02:25 +02:00
2020-10-01 11:27:17 +02:00
2020-08-19 10:35:41 +02:00
2020-11-16 15:02:16 +01:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-11-25 14:25:56 -08:00
2020-09-16 11:40:06 +01:00
2020-08-21 21:08:56 +02:00
2020-08-21 21:08:56 +02:00
2020-08-21 21:08:56 +02:00
2020-08-21 09:19:12 +02:00
2020-08-19 10:35:41 +02:00
2020-09-30 16:53:37 +08:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-11-10 16:00:41 +01:00
2020-11-10 16:00:41 +01:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-09-22 11:57:16 +02:00
2020-11-10 16:00:41 +01:00
2020-11-13 09:20:18 +00:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-11-20 13:57:15 +01:00
2020-11-20 17:31:24 +01:00
2020-11-20 17:31:24 +01:00
2020-11-10 16:18:07 +01:00
2020-11-10 16:18:07 +01:00
2020-08-19 10:35:41 +02:00
2020-10-07 10:54:24 +02:00
2020-08-19 10:35:41 +02:00
2020-11-20 13:57:15 +01:00
2020-11-20 13:57:15 +01:00
2020-11-10 16:18:07 +01:00
2020-11-10 16:18:07 +01:00
2020-12-03 06:07:04 -08:00
2020-08-25 22:49:19 +02:00
2020-08-21 21:08:56 +02:00
2020-08-19 10:35:41 +02:00
2020-09-25 08:43:57 -05:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-21 21:08:56 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-11-10 16:00:41 +01:00
2020-08-19 10:35:41 +02:00
2020-08-25 14:35:55 +01:00
2020-12-02 10:13:02 +01:00
2020-11-20 18:48:33 +01:00
2020-08-19 10:35:41 +02:00
2020-09-16 09:50:17 +01:00
2020-09-16 09:50:17 +01:00
2020-11-25 07:30:26 -03:00
2020-11-13 09:20:18 +00:00
2020-08-19 10:35:41 +02:00
2020-10-29 01:14:49 +01:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-20 11:07:12 +01:00
2020-08-26 12:56:11 +02:00
2020-08-19 10:35:41 +02:00
2020-09-01 11:04:53 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00
2020-08-19 10:35:41 +02:00