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/bignum_internal.h b/library/bignum_internal.h
index f14c294..5435ebb 100644
--- a/library/bignum_internal.h
+++ b/library/bignum_internal.h
@@ -30,14 +30,14 @@
/**
* \brief Calculate initialisation value for fast Montgomery modular
- * multiplication.
+ * multiplication
*
- * \param[out] mm The initialisation value for fast Montgomery modular
- * multiplication.
- * \param[in] N Little-endian presentation of the modulus. This must have
- * at least one limb.
+ * \param[in] N Little-endian presentation of the modulus. This must have
+ * at least one limb.
+ *
+ * \return The initialisation value for fast Montgomery modular multiplication
*/
-void mbedtls_mpi_montg_init(mbedtls_mpi_uint *mm, const mbedtls_mpi *N);
+mbedtls_mpi_uint mbedtls_mpi_montmul_init(const mbedtls_mpi_uint *N);
/** Montgomery multiplication: A = A * B * R^-1 mod N (HAC 14.36)
*