mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 00:05:36 +01:00
Add parameter validation to mbedtls_ecp_restart_init()
This commit is contained in:
parent
486f1b33d7
commit
80f71689ee
@ -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 )
|
void mbedtls_ecp_restart_init( mbedtls_ecp_restart_ctx *ctx )
|
||||||
{
|
{
|
||||||
|
ECP_VALIDATE( ctx != NULL );
|
||||||
ctx->ops_done = 0;
|
ctx->ops_done = 0;
|
||||||
ctx->depth = 0;
|
ctx->depth = 0;
|
||||||
ctx->rsm = NULL;
|
ctx->rsm = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user