Add infrastructure for ecdsa_verify_restartable()
This commit is contained in:
parent
722e5156fd
commit
a0c5bcc2bc
4 changed files with 107 additions and 2 deletions
|
@ -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()
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue