ECDSA: Refactor return value checks for mbedtls_ecdsa_can_do
This commit is contained in:
parent
0a92cc1f5c
commit
8cd4fba777
1 changed files with 2 additions and 2 deletions
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