Make ECDH functions actually restartable
diff --git a/include/mbedtls/ecdh.h b/include/mbedtls/ecdh.h
index 506a1cf..e707558 100644
--- a/include/mbedtls/ecdh.h
+++ b/include/mbedtls/ecdh.h
@@ -52,6 +52,9 @@
mbedtls_ecp_point Vi; /*!< blinding value (for later) */
mbedtls_ecp_point Vf; /*!< un-blinding value (for later) */
mbedtls_mpi _d; /*!< previous d (for later) */
+#if defined(MBEDTLS_ECP_RESTARTABLE)
+ mbedtls_ecp_restart_ctx rs; /*!< restart context for EC computations */
+#endif
}
mbedtls_ecdh_context;