From 3eaa8e7005c727e73f0104158acc49daa53e643d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Mon, 25 Nov 2013 16:16:33 +0100 Subject: [PATCH] Clarify comments of mpi_mul_int() --- include/polarssl/bignum.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/polarssl/bignum.h b/include/polarssl/bignum.h index 9525775de..d98dce9c4 100644 --- a/include/polarssl/bignum.h +++ b/include/polarssl/bignum.h @@ -540,8 +540,9 @@ int mpi_mul_mpi( mpi *X, const mpi *A, const mpi *B ); /** * \brief Baseline multiplication: X = A * b - * Note: b is an unsigned integer type, thus - * Negative values of b are ignored. + * Note: despite the functon signature, b is treated as a + * t_uint. Negative values of b are treated as large positive + * values. * * \param X Destination MPI * \param A Left-hand MPI