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

@ -100,6 +100,14 @@ void mbedtls_ecp_set_max_ops( unsigned max_ops )
ecp_max_ops = max_ops;
}
/*
* Check if restart is enabled
*/
int mbedtls_ecp_restart_enabled( void )
{
return( ecp_max_ops != 0 );
}
/*
* Restart sub-context for ecp_mul_comb()
*/