Make PK EC sign/verify actually restartable

This commit is contained in:
Manuel Pégourié-Gonnard 2017-05-09 10:42:40 +02:00
parent c4ee9acb7b
commit 1f596064bc
6 changed files with 242 additions and 5 deletions

View file

@ -91,6 +91,9 @@ typedef struct
#if defined(MBEDTLS_ECDSA_DETERMINISTIC)
mbedtls_ecdsa_restart_det_ctx *det; /*!< ecdsa_sign_det() sub-context */
#endif
#if defined(MBEDTLS_PK_C)
mbedtls_ecdsa_context *ecdsa; /*!< used by the PK layer */
#endif
} mbedtls_ecdsa_restart_ctx;
#else /* MBEDTLS_ECP_RESTARTABLE */