mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 16:48:29 +00:00
Explicit state assignments in ecdsa too
This commit is contained in:
parent
4ed1dab474
commit
6348181da9
1 changed files with 4 additions and 6 deletions
|
@ -307,9 +307,7 @@ static int ecdsa_sign_restartable( mbedtls_ecp_group *grp,
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
if( rs_ctx != NULL && rs_ctx->sig != NULL )
|
if( rs_ctx != NULL && rs_ctx->sig != NULL )
|
||||||
{
|
rs_ctx->sig->state = ecdsa_sig_mul;
|
||||||
rs_ctx->sig->state++;
|
|
||||||
}
|
|
||||||
|
|
||||||
mul:
|
mul:
|
||||||
#endif
|
#endif
|
||||||
|
@ -321,7 +319,7 @@ mul:
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
if( rs_ctx != NULL && rs_ctx->sig != NULL )
|
if( rs_ctx != NULL && rs_ctx->sig != NULL )
|
||||||
rs_ctx->sig->state++;
|
rs_ctx->sig->state = ecdsa_sig_modn;
|
||||||
|
|
||||||
modn:
|
modn:
|
||||||
#endif
|
#endif
|
||||||
|
@ -426,7 +424,7 @@ static int ecdsa_sign_det_restartable( mbedtls_ecp_group *grp,
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
if( rs_ctx != NULL && rs_ctx->det != NULL )
|
if( rs_ctx != NULL && rs_ctx->det != NULL )
|
||||||
rs_ctx->det->state++;
|
rs_ctx->det->state = ecdsa_det_sign;
|
||||||
|
|
||||||
sign:
|
sign:
|
||||||
#endif
|
#endif
|
||||||
|
@ -521,7 +519,7 @@ static int ecdsa_verify_restartable( mbedtls_ecp_group *grp,
|
||||||
|
|
||||||
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
#if defined(MBEDTLS_ECP_RESTARTABLE)
|
||||||
if( rs_ctx != NULL && rs_ctx->ver != NULL )
|
if( rs_ctx != NULL && rs_ctx->ver != NULL )
|
||||||
rs_ctx->ver->state++;
|
rs_ctx->ver->state = ecdsa_ver_muladd;
|
||||||
|
|
||||||
muladd:
|
muladd:
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue