commit | b118d54ff692945050fdf52a6ca0e184000dc5e6 | [log] [tgz] |
---|---|---|
author | Janos Follath <janos.follath@arm.com> | Tue Nov 22 15:00:46 2022 +0000 |
committer | Janos Follath <janos.follath@arm.com> | Tue Nov 22 15:00:46 2022 +0000 |
tree | 9d8dcb7e60de1735175addec84fcd78fb1f8d44d | |
parent | c77286971343e9a8156a87d93e441b2ec8be039f [diff] |
mpi_exp_mod: use x_index consistently Signed-off-by: Janos Follath <janos.follath@arm.com>
diff --git a/library/bignum.c b/library/bignum.c index 5e1235d..9392b21 100644 --- a/library/bignum.c +++ b/library/bignum.c
@@ -2284,7 +2284,7 @@ for( i = w_table_used_size/2; i < w_table_used_size; i++ ) mbedtls_mpi_free( &W[i] ); - mbedtls_mpi_free( &W[0] ); + mbedtls_mpi_free( &W[x_index] ); mbedtls_mpi_free( &W[1] ); mbedtls_mpi_free( &T ); mbedtls_mpi_free( &Apos );