mirror of
				https://github.com/Mbed-TLS/mbedtls.git
				synced 2025-11-02 09:33:20 +03:00 
			
		
		
		
	Merge pull request #6753 from mpg/restartable-docfix-2.28
[Backport 2.28] Document ECP_RESTARTABLE
This commit is contained in:
		@@ -144,6 +144,11 @@
 | 
			
		||||
#error "MBEDTLS_ECDH_VARIANT_EVEREST_ENABLED defined, but MBEDTLS_ECDH_LEGACY_CONTEXT not disabled"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_ECP_RESTARTABLE)           && \
 | 
			
		||||
    !defined(MBEDTLS_ECP_C)
 | 
			
		||||
#error "MBEDTLS_ECP_RESTARTABLE defined, but not all prerequisites"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#if defined(MBEDTLS_ECDSA_DETERMINISTIC) && !defined(MBEDTLS_HMAC_DRBG_C)
 | 
			
		||||
#error "MBEDTLS_ECDSA_DETERMINISTIC defined, but not all prerequisites"
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -859,12 +859,37 @@
 | 
			
		||||
 * This is useful in non-threaded environments if you want to avoid blocking
 | 
			
		||||
 * for too long on ECC (and, hence, X.509 or SSL/TLS) operations.
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment this macro to enable restartable ECC computations.
 | 
			
		||||
 * This option:
 | 
			
		||||
 * - Adds xxx_restartable() variants of existing operations in the
 | 
			
		||||
 *   following modules, with corresponding restart context types:
 | 
			
		||||
 *   - ECP (for Short Weierstrass curves only): scalar multiplication (mul),
 | 
			
		||||
 *     linear combination (muladd);
 | 
			
		||||
 *   - ECDSA: signature generation & verification;
 | 
			
		||||
 *   - PK: signature generation & verification;
 | 
			
		||||
 *   - X509: certificate chain verification.
 | 
			
		||||
 * - Adds mbedtls_ecdh_enable_restart() in the ECDH module.
 | 
			
		||||
 * - Changes the behaviour of TLS 1.2 clients (not servers) when using the
 | 
			
		||||
 *   ECDHE-ECDSA key exchange (not other key exchanges) to make all ECC
 | 
			
		||||
 *   computations restartable:
 | 
			
		||||
 *   - ECDH operations from the key exchange, only for Short Weierstass
 | 
			
		||||
 *     curves;
 | 
			
		||||
 *   - verification of the server's key exchange signature;
 | 
			
		||||
 *   - verification of the server's certificate chain;
 | 
			
		||||
 *   - generation of the client's signature if client authentication is used,
 | 
			
		||||
 *     with an ECC key/certificate.
 | 
			
		||||
 *
 | 
			
		||||
 * \note  In the cases above, the usual SSL/TLS functions, such as
 | 
			
		||||
 *        mbedtls_ssl_handshake(), can now return
 | 
			
		||||
 *        MBEDTLS_ERR_SSL_CRYPTO_IN_PROGRESS.
 | 
			
		||||
 *
 | 
			
		||||
 * \note  This option only works with the default software implementation of
 | 
			
		||||
 *        elliptic curve functionality. It is incompatible with
 | 
			
		||||
 *        MBEDTLS_ECP_ALT, MBEDTLS_ECDH_XXX_ALT, MBEDTLS_ECDSA_XXX_ALT
 | 
			
		||||
 *        and MBEDTLS_ECDH_LEGACY_CONTEXT.
 | 
			
		||||
 *        MBEDTLS_ECP_ALT, MBEDTLS_ECDH_XXX_ALT, MBEDTLS_ECDSA_XXX_ALT,
 | 
			
		||||
 *        MBEDTLS_ECDH_LEGACY_CONTEXT, and MBEDTLS_USE_PSA_CRYPTO.
 | 
			
		||||
 *
 | 
			
		||||
 * Requires: MBEDTLS_ECP_C
 | 
			
		||||
 *
 | 
			
		||||
 * Uncomment this macro to enable restartable ECC computations.
 | 
			
		||||
 */
 | 
			
		||||
//#define MBEDTLS_ECP_RESTARTABLE
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user