commit | 3165f063b56e1e233875f529a8b01dbd771cce60 | [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:04:11 2022 +0000 |
tree | cc371987ea3c60e06db01d5c90768c8e9f0ad245 | |
parent | 33480a372b4c618cc3ad3b6b16b0f42e37fad94c [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 993eb2a..3f81d5d 100644 --- a/library/bignum.c +++ b/library/bignum.c
@@ -2253,7 +2253,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 );