mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-29 02:37:13 +01:00
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. |
||
|---|---|---|
| .. | ||
| aes.h | ||
| aesni.h | ||
| arc4.h | ||
| asn1.h | ||
| asn1write.h | ||
| base64.h | ||
| bignum.h | ||
| blowfish.h | ||
| bn_mul.h | ||
| camellia.h | ||
| ccm.h | ||
| certs.h | ||
| check_config.h | ||
| cipher.h | ||
| cipher_internal.h | ||
| cmac.h | ||
| compat-1.3.h | ||
| config.h | ||
| ctr_drbg.h | ||
| debug.h | ||
| des.h | ||
| dhm.h | ||
| ecdh.h | ||
| ecdsa.h | ||
| ecjpake.h | ||
| ecp.h | ||
| ecp_internal.h | ||
| entropy.h | ||
| entropy_poll.h | ||
| error.h | ||
| gcm.h | ||
| havege.h | ||
| hmac_drbg.h | ||
| md.h | ||
| md2.h | ||
| md4.h | ||
| md5.h | ||
| md_internal.h | ||
| memory_buffer_alloc.h | ||
| net.h | ||
| net_sockets.h | ||
| oid.h | ||
| padlock.h | ||
| pem.h | ||
| pk.h | ||
| pk_internal.h | ||
| pkcs5.h | ||
| pkcs11.h | ||
| pkcs12.h | ||
| platform.h | ||
| platform_time.h | ||
| ripemd160.h | ||
| rsa.h | ||
| sha1.h | ||
| sha256.h | ||
| sha512.h | ||
| ssl.h | ||
| ssl_cache.h | ||
| ssl_ciphersuites.h | ||
| ssl_cookie.h | ||
| ssl_internal.h | ||
| ssl_ticket.h | ||
| threading.h | ||
| timing.h | ||
| version.h | ||
| x509.h | ||
| x509_crl.h | ||
| x509_crt.h | ||
| x509_csr.h | ||
| xtea.h | ||