mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 02:45:41 +01:00
Add brackets around arguments of internal macro DHM_MPI_EXPORT
This commit is contained in:
parent
70da2c545b
commit
de6c1644cc
@ -430,12 +430,14 @@ int mbedtls_dhm_make_params( mbedtls_dhm_context *ctx, int x_size,
|
|||||||
/*
|
/*
|
||||||
* export P, G, GX
|
* export P, G, GX
|
||||||
*/
|
*/
|
||||||
#define DHM_MPI_EXPORT(X,n) \
|
#define DHM_MPI_EXPORT( X, n ) \
|
||||||
do { \
|
do { \
|
||||||
MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( X, p + 2, n ) ); \
|
MBEDTLS_MPI_CHK( mbedtls_mpi_write_binary( ( X ), \
|
||||||
*p++ = (unsigned char)( n >> 8 ); \
|
p + 2, \
|
||||||
*p++ = (unsigned char)( n ); \
|
( n ) ) ); \
|
||||||
p += n; \
|
*p++ = (unsigned char)( ( n ) >> 8 ); \
|
||||||
|
*p++ = (unsigned char)( ( n ) ); \
|
||||||
|
p += ( n ); \
|
||||||
} while( 0 )
|
} while( 0 )
|
||||||
|
|
||||||
n1 = mbedtls_mpi_size( &ctx->P );
|
n1 = mbedtls_mpi_size( &ctx->P );
|
||||||
|
Loading…
Reference in New Issue
Block a user