mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
- Renamed t_s_int, t_int and t_dbl to respectively t_sint, t_uint and t_udbl for clarity
This commit is contained in:
@ -136,7 +136,7 @@ int dhm_make_params( dhm_context *ctx, int x_size,
|
||||
/*
|
||||
* Generate X as large as possible ( < P )
|
||||
*/
|
||||
n = x_size / sizeof( t_int ) + 1;
|
||||
n = x_size / sizeof( t_uint ) + 1;
|
||||
|
||||
mpi_fill_random( &ctx->X, n, f_rng, p_rng );
|
||||
|
||||
@ -213,7 +213,7 @@ int dhm_make_public( dhm_context *ctx, int x_size,
|
||||
/*
|
||||
* generate X and calculate GX = G^X mod P
|
||||
*/
|
||||
n = x_size / sizeof( t_int ) + 1;
|
||||
n = x_size / sizeof( t_uint ) + 1;
|
||||
|
||||
mpi_fill_random( &ctx->X, n, f_rng, p_rng );
|
||||
|
||||
|
Reference in New Issue
Block a user