mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-22 05:46:41 +01: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:
parent
23986e5d5d
commit
a755ca1bbe
7 changed files with 73 additions and 72 deletions
|
|
@ -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 );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue