1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-11-23 00:02:39 +03:00
Files
mbedtls/include/mbedtls
Manuel Pégourié-Gonnard 77af79a324 Add proper allocation of restart context
We'll need to store MPIs and other things that allocate memory in this
context, so we need a place to free it. We can't rely on doing it before
returning from ecp_mul() as we might return MBEDTLS_ERR_ECP_IN_PROGRESS (thus
preserving the context) and never be called again (for example, TLS handshake
aborted for another reason). So, ecp_group_free() looks like a good place to
do this, if the restart context is part of struct ecp_group.

This means it's not possible to use the same ecp_group structure in different
threads concurrently, but:
- that's already the case (and documented) for other reasons
- this feature is precisely intended for environments that lack threading

An alternative option would be for the caller to have to allocate/free the
restart context and pass it explicitly, but this means creating new functions
that take a context argument, and putting a burden on the user.
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