mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 22:25:47 +01:00
Removed redundant code in mpi_fill_random()
This commit is contained in:
parent
2ca1dc8958
commit
9bb04b6389
@ -1794,9 +1794,6 @@ int mpi_fill_random( mpi *X, size_t size,
|
|||||||
if( size > POLARSSL_MPI_MAX_SIZE )
|
if( size > POLARSSL_MPI_MAX_SIZE )
|
||||||
return( POLARSSL_ERR_MPI_BAD_INPUT_DATA );
|
return( POLARSSL_ERR_MPI_BAD_INPUT_DATA );
|
||||||
|
|
||||||
MPI_CHK( mpi_grow( X, CHARS_TO_LIMBS( size ) ) );
|
|
||||||
MPI_CHK( mpi_lset( X, 0 ) );
|
|
||||||
|
|
||||||
MPI_CHK( f_rng( p_rng, buf, size ) );
|
MPI_CHK( f_rng( p_rng, buf, size ) );
|
||||||
MPI_CHK( mpi_read_binary( X, buf, size ) );
|
MPI_CHK( mpi_read_binary( X, buf, size ) );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user