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
..
aes.h Make minor changes to documentation 2017-07-27 15:08:01 +01:00
aesni.h
arc4.h
asn1.h
asn1write.h Add mbedtls_asn1_write_len() support for 3 and 4 byte lengths 2016-08-25 15:42:27 +01:00
base64.h
bignum.h Remove MBEDTLS_TYPE_UDBL option 2017-07-27 15:08:01 +01:00
blowfish.h
bn_mul.h Fix segfault on x32 by using better register constraints in bn_mul.h 2016-05-23 14:29:28 +01:00
camellia.h
ccm.h
certs.h
check_config.h Fix check_config.h #error directive 2017-07-27 15:08:01 +01:00
cipher.h Refactor and change CMAC interface 2016-10-13 13:51:11 +01:00
cipher_internal.h
cmac.h Clarify CMAC API 2016-12-14 15:27:22 +00:00
compat-1.3.h Remove obsolete macros from compat-1.3.h 2017-05-16 10:22:37 +01:00
config.h Add config flag MBEDTLS_ECP_EARLY_RETURN 2017-08-09 11:44:53 +02:00
ctr_drbg.h
debug.h Fix a typo that confuses check-names.sh 2016-03-18 16:47:10 +00:00
des.h
dhm.h Clarified function param in dhm.h 2016-05-25 00:59:37 +01:00
ecdh.h
ecdsa.h Clarify the use of ECDSA API 2017-03-10 11:31:41 +00:00
ecjpake.h Fix check-doxy-blocks.pl errors (cmac.c ecjpake.h) 2017-05-12 00:18:04 +01:00
ecp.h Add proper allocation of restart context 2017-08-09 11:44:53 +02:00
ecp_internal.h Apply feedback to ECP internal interface documentation 2017-05-11 22:42:14 +01:00
entropy.h Documentation and entropy self test changes (#610) 2016-09-13 13:30:02 +01:00
entropy_poll.h Add config macro for min bytes hw entropy 2016-10-13 13:48:48 +01:00
error.h Add MBEDTLS_ERR_ECP_IN_PROGRESS 2017-08-09 11:44:53 +02:00
gcm.h Fix documentation for mbedtls_gcm_finish() 2016-10-13 13:54:47 +01:00
havege.h
hmac_drbg.h
md.h Clean up comment formatting in md.h 2016-10-13 13:51:12 +01:00
md2.h
md4.h
md5.h
md_internal.h
memory_buffer_alloc.h Clarifies documentation on reported memory statistics 2016-05-23 14:29:29 +01:00
net.h Rename net.{c,h} to net_sockets.{c,h} 2016-10-13 13:48:48 +01:00
net_sockets.h Rename net.{c,h} to net_sockets.{c,h} 2016-10-13 13:48:48 +01:00
oid.h
padlock.h
pem.h
pk.h Fixes minor typos in comments in pk.h and ctr_drbg.c 2016-05-23 14:29:30 +01:00
pk_internal.h
pkcs5.h
pkcs11.h
pkcs12.h
platform.h Fix platform setup/teardown feature and comments 2017-07-27 15:08:01 +01:00
platform_time.h Puts platform time abstraction into its own header 2016-07-13 14:46:18 +01:00
ripemd160.h
rsa.h Improve documentation of PKCS1 decryption functions 2017-07-27 15:05:12 +01:00
sha1.h
sha256.h
sha512.h
ssl.h Clarify documentation for directly-trusted certs 2017-08-08 11:06:49 +02:00
ssl_cache.h Abstracts away time()/stdlib.h into platform 2016-04-26 14:49:59 +01:00
ssl_ciphersuites.h Undo API change 2017-07-27 15:08:01 +01:00
ssl_cookie.h
ssl_internal.h Fix mbedtls_ssl_read 2017-06-08 10:12:16 +01:00
ssl_ticket.h
threading.h Remove mutexes from ECP hardware acceleration 2017-07-27 15:08:01 +01:00
timing.h
version.h Update the version number to 2.5.1 2017-06-20 23:08:10 +01:00
x509.h Only return VERIFY_FAILED from a single point 2017-07-06 11:58:41 +02:00
x509_crl.h
x509_crt.h Improve some comments, fix some typos+whitespace 2017-08-08 18:17:53 +02:00
x509_csr.h Fix typo in docs for mbedtls_x509write_csr_der() 2016-10-13 13:53:56 +01:00
xtea.h