mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-01-25 17:11:03 +00:00
Fix code style
This commit is contained in:
parent
09a24b3dda
commit
c25df6848b
|
@ -63,7 +63,7 @@ int mbedtls_ecdh_can_do( mbedtls_ecp_group_id gid )
|
||||||
{
|
{
|
||||||
/* At this time, all groups support ECDH. */
|
/* At this time, all groups support ECDH. */
|
||||||
(void) gid;
|
(void) gid;
|
||||||
return 1;
|
return( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(MBEDTLS_ECDH_GEN_PUBLIC_ALT)
|
#if !defined(MBEDTLS_ECDH_GEN_PUBLIC_ALT)
|
||||||
|
|
|
@ -263,7 +263,7 @@ static int ecdsa_sign_restartable( mbedtls_ecp_group *grp,
|
||||||
mbedtls_mpi *pk = &k, *pr = r;
|
mbedtls_mpi *pk = &k, *pr = r;
|
||||||
|
|
||||||
/* Fail cleanly on curves such as Curve25519 that can't be used for ECDSA */
|
/* 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 );
|
return( MBEDTLS_ERR_ECP_BAD_INPUT_DATA );
|
||||||
|
|
||||||
/* Make sure d is in range 1..n-1 */
|
/* 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 );
|
mbedtls_mpi_init( &u1 ); mbedtls_mpi_init( &u2 );
|
||||||
|
|
||||||
/* Fail cleanly on curves such as Curve25519 that can't be used for ECDSA */
|
/* 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 );
|
return( MBEDTLS_ERR_ECP_BAD_INPUT_DATA );
|
||||||
|
|
||||||
ECDSA_RS_ENTER( ver );
|
ECDSA_RS_ENTER( ver );
|
||||||
|
|
Loading…
Reference in a new issue