1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Make ECDH functions actually restartable

This commit is contained in:
Manuel Pégourié-Gonnard
2017-04-27 11:38:26 +02:00
parent 71b2c53254
commit 66ba48a3c8
3 changed files with 89 additions and 12 deletions

View File

@ -52,6 +52,9 @@ typedef struct
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;