bignum_core: Style update
'mbedtls_mpi_core_get_mont_R2_unsafe' aligns const
keyword to match the style of the rest of the module.
Documentation is also updated to remove
`MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED`.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
diff --git a/library/bignum_core.c b/library/bignum_core.c
index ad22a15..675eb30 100644
--- a/library/bignum_core.c
+++ b/library/bignum_core.c
@@ -512,7 +512,7 @@
}
int mbedtls_mpi_core_get_mont_R2_unsafe( mbedtls_mpi *X,
- mbedtls_mpi const *N )
+ const mbedtls_mpi *N )
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
diff --git a/library/bignum_core.h b/library/bignum_core.h
index 9870da4..f3d4609 100644
--- a/library/bignum_core.h
+++ b/library/bignum_core.h
@@ -426,9 +426,8 @@
* to store the value of Montgomery constant squared.
* \return #MBEDTLS_ERR_MPI_DIVISION_BY_ZERO if \p N modulus is zero.
* \return #MBEDTLS_ERR_MPI_NEGATIVE_VALUE if \p N modulus is negative.
- * \return #MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED if other operations fail.
*/
int mbedtls_mpi_core_get_mont_R2_unsafe( mbedtls_mpi *X,
- mbedtls_mpi const *N );
+ const mbedtls_mpi *N );
#endif /* MBEDTLS_BIGNUM_CORE_H */