mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-03 01:20:39 +00:00
ECDSA: Refactor return value checks for mbedtls_ecdsa_can_do
This commit is contained in:
parent
0a92cc1f5c
commit
8cd4fba777
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->grp_id != MBEDTLS_ECP_DP_NONE;
|
||||||
curve_info++ )
|
curve_info++ )
|
||||||
{
|
{
|
||||||
if( mbedtls_ecdsa_can_do( curve_info->grp_id ) == 0 )
|
if( ! mbedtls_ecdsa_can_do( curve_info->grp_id ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
mbedtls_ecdsa_init( &ecdsa );
|
mbedtls_ecdsa_init( &ecdsa );
|
||||||
@ -866,7 +866,7 @@ int main( int argc, char *argv[] )
|
|||||||
curve_info->grp_id != MBEDTLS_ECP_DP_NONE;
|
curve_info->grp_id != MBEDTLS_ECP_DP_NONE;
|
||||||
curve_info++ )
|
curve_info++ )
|
||||||
{
|
{
|
||||||
if( mbedtls_ecdsa_can_do( curve_info->grp_id ) == 0 )
|
if( ! mbedtls_ecdsa_can_do( curve_info->grp_id ) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
mbedtls_ecdsa_init( &ecdsa );
|
mbedtls_ecdsa_init( &ecdsa );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user