mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 19:25:28 +00:00
ECDSA: Refactor return value checks for mbedtls_ecdsa_can_do
This commit is contained in:
parent
1d9b2832de
commit
840f9530bc
4
programs/test/benchmark.c
Normal file → Executable file
4
programs/test/benchmark.c
Normal file → Executable file
|
@ -844,7 +844,7 @@ int main( int argc, char *argv[] )
|
|||
curve_info->grp_id != MBEDTLS_ECP_DP_NONE;
|
||||
curve_info++ )
|
||||
{
|
||||
if( mbedtls_ecdsa_can_do( curve_info->grp_id ) == 0 )
|
||||
if( ! mbedtls_ecdsa_can_do( curve_info->grp_id ) )
|
||||
continue;
|
||||
|
||||
mbedtls_ecdsa_init( &ecdsa );
|
||||
|
@ -866,7 +866,7 @@ int main( int argc, char *argv[] )
|
|||
curve_info->grp_id != MBEDTLS_ECP_DP_NONE;
|
||||
curve_info++ )
|
||||
{
|
||||
if( mbedtls_ecdsa_can_do( curve_info->grp_id ) == 0 )
|
||||
if( ! mbedtls_ecdsa_can_do( curve_info->grp_id ) )
|
||||
continue;
|
||||
|
||||
mbedtls_ecdsa_init( &ecdsa );
|
||||
|
|
Loading…
Reference in a new issue