Merge pull request #5359 from hanno-arm/mpi_montmul_remove_dead_code

Remove redundant write operation in Montgomery multiplication
This commit is contained in:
Manuel Pégourié-Gonnard 2022-01-25 13:00:19 +01:00 committed by GitHub
commit 9d95d81eae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1931,7 +1931,7 @@ static void mpi_montmul( mbedtls_mpi *A, const mbedtls_mpi *B, const mbedtls_mpi
mpi_mul_hlp( m, B->p, d, u0 );
mpi_mul_hlp( n, N->p, d, u1 );
*d++ = u0; d[n + 1] = 0;
d++; d[n + 1] = 0;
}
/* At this point, d is either the desired result or the desired result