- mpi_exp_mod() now correctly handles negative base numbers (Closes ticket #52)
diff --git a/include/polarssl/bignum.h b/include/polarssl/bignum.h
index 898e37d..ce6ca86 100644
--- a/include/polarssl/bignum.h
+++ b/include/polarssl/bignum.h
@@ -543,7 +543,8 @@
*
* \return 0 if successful,
* POLARSSL_ERR_MPI_MALLOC_FAILED if memory allocation failed,
- * POLARSSL_ERR_MPI_BAD_INPUT_DATA if N is negative or even
+ * POLARSSL_ERR_MPI_BAD_INPUT_DATA if N is negative or even or if
+ * E is negative
*
* \note _RR is used to avoid re-computing R*R mod N across
* multiple calls, which speeds up things a bit. It can