Add ecp_gen_keypair()
diff --git a/include/polarssl/ecp.h b/include/polarssl/ecp.h
index 2d20693..6c52f96 100644
--- a/include/polarssl/ecp.h
+++ b/include/polarssl/ecp.h
@@ -310,6 +310,22 @@
const mpi *m, const ecp_point *P );
/**
+ * \brief Generate a keypair
+ *
+ * \param grp ECP group
+ * \param d Destination MPI (secret part)
+ * \param Q Destination point (public part)
+ * \param f_rng RNG function
+ * \param p_rng RNG parameter
+ *
+ * \return 0 if successful,
+ * or a POLARSSL_ERR_ECP_XXX or POLARSSL_MPI_XXX error code
+ */
+int ecp_gen_keypair( const ecp_group *grp, mpi *d, ecp_point *Q,
+ int (*f_rng)(void *, unsigned char *, size_t),
+ void *p_rng );
+
+/**
* \brief Checkup routine
*
* \return 0 if successful, or 1 if the test failed