From 9bb04b63892dae78e02e1fa772c2345626ca05b7 Mon Sep 17 00:00:00 2001 From: Paul Bakker Date: Thu, 1 May 2014 09:47:02 +0200 Subject: [PATCH] Removed redundant code in mpi_fill_random() --- library/bignum.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/library/bignum.c b/library/bignum.c index ac7f25c01..b9175f6a3 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -1794,9 +1794,6 @@ int mpi_fill_random( mpi *X, size_t size, if( size > POLARSSL_MPI_MAX_SIZE ) 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( mpi_read_binary( X, buf, size ) );