mbedtls/tests
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
..
data_files Add missing dependency in test-certs Makefile 2017-08-08 18:54:13 +02:00
git-scripts Move the git scripts to correct path 2017-07-27 21:44:34 +01:00
scripts Improve some comments, fix some typos+whitespace 2017-08-08 18:17:53 +02:00
suites Add proper allocation of restart context 2017-08-09 11:44:53 +02:00
.gitignore Move some ignore patterns to subdirectories 2015-01-28 15:33:23 +00:00
CMakeLists.txt Remove need for elevated command line in Windows 2017-02-15 09:08:26 +00:00
compat.sh Allow SHA-1 in test scripts 2017-06-06 18:44:14 +02:00
Descriptions.txt Add selftest program to the list of tests 2014-04-04 16:33:01 +02:00
Makefile Clean up of formatting, and potential integer overflow fix 2016-10-13 13:51:13 +01:00
ssl-opt.sh Fix the check for max CA intermediates in ssl-opt.sh 2017-07-28 18:18:29 +01:00