From c25df6848b5b26279a098a24a025bd2b24c90c02 Mon Sep 17 00:00:00 2001 From: "Christoph M. Wintersteiger" Date: Tue, 16 Apr 2019 12:54:56 +0100 Subject: [PATCH] Fix code style --- library/ecdh.c | 2 +- library/ecdsa.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/library/ecdh.c b/library/ecdh.c index f1609bde0..914eb5055 100644 --- a/library/ecdh.c +++ b/library/ecdh.c @@ -63,7 +63,7 @@ int mbedtls_ecdh_can_do( mbedtls_ecp_group_id gid ) { /* At this time, all groups support ECDH. */ (void) gid; - return 1; + return( 1 ); } #if !defined(MBEDTLS_ECDH_GEN_PUBLIC_ALT) diff --git a/library/ecdsa.c b/library/ecdsa.c index 162e62f02..5c3038048 100644 --- a/library/ecdsa.c +++ b/library/ecdsa.c @@ -263,7 +263,7 @@ static int ecdsa_sign_restartable( mbedtls_ecp_group *grp, mbedtls_mpi *pk = &k, *pr = r; /* Fail cleanly on curves such as Curve25519 that can't be used for ECDSA */ - if( !mbedtls_ecdsa_can_do( grp->id ) || grp->N.p == NULL ) + if( ! mbedtls_ecdsa_can_do( grp->id ) || grp->N.p == NULL ) return( MBEDTLS_ERR_ECP_BAD_INPUT_DATA ); /* Make sure d is in range 1..n-1 */ @@ -516,7 +516,7 @@ static int ecdsa_verify_restartable( mbedtls_ecp_group *grp, mbedtls_mpi_init( &u1 ); mbedtls_mpi_init( &u2 ); /* Fail cleanly on curves such as Curve25519 that can't be used for ECDSA */ - if( !mbedtls_ecdsa_can_do( grp->id ) || grp->N.p == NULL ) + if( ! mbedtls_ecdsa_can_do( grp->id ) || grp->N.p == NULL ) return( MBEDTLS_ERR_ECP_BAD_INPUT_DATA ); ECDSA_RS_ENTER( ver );