Follow parameter naming comvention
Signed-off-by: Gabor Mezei <gabor.mezei@arm.com>
diff --git a/library/bignum_core.h b/library/bignum_core.h
index cf7688d..86180d3 100644
--- a/library/bignum_core.h
+++ b/library/bignum_core.h
@@ -80,11 +80,11 @@
*
* \param[OUT] X The address of the first MPI. This must be initialized.
* It must have at least \p limbs limbs.
- * \param[IN] Y The address of the second MPI. This must be initialized.
- * \param limbs The number of limbs of \p Y.
+ * \param[IN] A The address of the second MPI. This must be initialized.
+ * \param limbs The number of limbs of \p A.
* \param assign The condition deciding whether to perform the
* assignment or not. Must be either 0 or 1:
- * * \c 1: Perform the assignment `X = Y`.
+ * * \c 1: Perform the assignment `X = A`.
* * \c 0: Keep the original value of \p X.
*
* \note This function avoids leaking any information about whether
@@ -95,7 +95,7 @@
* neither its original value nor the value in \p Y.
*/
void mbedtls_mpi_core_cond_assign( mbedtls_mpi_uint *X,
- const mbedtls_mpi_uint *Y,
+ const mbedtls_mpi_uint *A,
size_t limbs,
unsigned char assign );
@@ -103,25 +103,25 @@
* \brief Perform a safe conditional swap of MPI which doesn't reveal whether
* the condition was true or not.
*
- * \param[IN,OUT] X The address of the first MPI.
+ * \param[IN,OUT] A The address of the first MPI.
* This must be initialized.
- * \param[IN,OUT] Y The address of the second MPI.
+ * \param[IN,OUT] B The address of the second MPI.
* This must be initialized.
- * \param limbs The number of limbs of \p Y and \p X.
+ * \param limbs The number of limbs of \p A and \p B.
* \param swap The condition deciding whether to perform
* the swap or not. Must be either 0 or 1:
- * * \c 1: Swap the values of \p X and \p Y.
- * * \c 0: Keep the original values of \p X and \p Y.
+ * * \c 1: Swap the values of \p A and \p B.
+ * * \c 0: Keep the original values of \p A and \p B.
*
* \note This function avoids leaking any information about whether
* the swap was done or not.
*
* \warning If \p swap is neither 0 nor 1, the result of this function
- * is indeterminate, and both \p X and \p Y might end up with
+ * is indeterminate, and both \p A and \p B might end up with
* values different to either of the original ones.
*/
-void mbedtls_mpi_core_cond_swap( mbedtls_mpi_uint *X,
- mbedtls_mpi_uint *Y,
+void mbedtls_mpi_core_cond_swap( mbedtls_mpi_uint *A,
+ mbedtls_mpi_uint *B,
size_t limbs,
unsigned char swap );