Add parameter validation to mbedtls_ecp_restart_init()
This commit is contained in:
parent
486f1b33d7
commit
80f71689ee
1 changed files with 1 additions and 0 deletions
|
@ -244,6 +244,7 @@ static void ecp_restart_ma_free( mbedtls_ecp_restart_muladd_ctx *ctx )
|
|||
*/
|
||||
void mbedtls_ecp_restart_init( mbedtls_ecp_restart_ctx *ctx )
|
||||
{
|
||||
ECP_VALIDATE( ctx != NULL );
|
||||
ctx->ops_done = 0;
|
||||
ctx->depth = 0;
|
||||
ctx->rsm = NULL;
|
||||
|
|
Loading…
Reference in a new issue