Align Montgomery init with development
The signature and naming of the Montgomrey initialisation function in
development and in the LTS was different. Align them for easier
readability and maintenance.
Signed-off-by: Janos Follath <janos.follath@arm.com>
diff --git a/library/rsa.c b/library/rsa.c
index 23fe843..0a0c2e3 100644
--- a/library/rsa.c
+++ b/library/rsa.c
@@ -815,8 +815,7 @@
const size_t nlimbs = N->n;
const size_t tlimbs = 2 * (nlimbs + 1);
- mbedtls_mpi_uint mm;
- mbedtls_mpi_montg_init(&mm, N);
+ mbedtls_mpi_uint mm = mbedtls_mpi_montmul_init(N->p);
mbedtls_mpi RR, M_T;