ECDSA: Refactor return value checks for mbedtls_ecdsa_can_do

This commit is contained in:
Christoph M. Wintersteiger 2019-02-15 12:34:40 +00:00 committed by Janos Follath
parent 1d9b2832de
commit 840f9530bc

4
programs/test/benchmark.c Normal file → Executable file
View 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 );