Add infrastructure for ecdsa_verify_restartable()

This commit is contained in:
Manuel Pégourié-Gonnard 2017-04-21 11:33:57 +02:00
parent 722e5156fd
commit a0c5bcc2bc
4 changed files with 107 additions and 2 deletions

View file

@ -341,6 +341,14 @@ typedef void mbedtls_ecp_restart_ctx;
* \note This setting is currently ignored by Curve25519
*/
void mbedtls_ecp_set_max_ops( unsigned max_ops );
/**
* \brief Check if restart is enabled (max_ops != 0)
*
* \return 0 if max_ops == 0 (restart disabled)
* 1 otherwise (restart enabled)
*/
int mbedtls_ecp_restart_enabled( void );
#endif /* MBEDTLS_ECP_RESTARTABLE */
/**