Skip to content

Commit

Permalink
lib: mbedtls: fix loop declaration
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <eduardo@calyptia.com>
  • Loading branch information
edsiper committed Jan 22, 2022
1 parent 4650cb5 commit 8abf245
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mbedtls-2.28.0/library/bignum.c
Original file line number Diff line number Diff line change
Expand Up @@ -1990,8 +1990,9 @@ static void mpi_montred( mbedtls_mpi *A, const mbedtls_mpi *N,
static int mpi_select( mbedtls_mpi *R, const mbedtls_mpi *T, size_t T_size, size_t idx )
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
size_t i;

for( size_t i = 0; i < T_size; i++ )
for(i = 0; i < T_size; i++ )
{
MBEDTLS_MPI_CHK( mbedtls_mpi_safe_cond_assign( R, &T[i],
(unsigned char) mbedtls_ct_size_bool_eq( i, idx ) ) );
Expand Down

0 comments on commit 8abf245

Please sign in to comment.