Check that 1 < D, E < N in `mbedtls_rsa_validate_params`
diff --git a/include/mbedtls/rsa.h b/include/mbedtls/rsa.h
index df0ade8..46daac5 100644
--- a/include/mbedtls/rsa.h
+++ b/include/mbedtls/rsa.h
@@ -174,12 +174,13 @@
* \param p_rng PRNG context for f_rng, or NULL
*
* \return
- * - 0 if the following conditions are satisfied:
- * - N = PQ if N,P,Q != NULL
+ * - 0 if the following conditions are satisfied
+ * if all relevant parameters are provided:
+ * - P prime if f_rng != NULL
+ * - Q prime if f_rng != NULL
+ * - 1 < N = PQ
+ * - 1 < D, E < N
* - D and E are modular inverses modulo P-1 and Q-1
- * if D,E,P,Q != NULL
- * - P prime if f_rng, P != NULL
- * - Q prime if f_rng, Q != NULL
* - A non-zero error code otherwise.
*
* \note The function can be used with a restricted set of arguments