Added ecp_write_binary().
diff --git a/include/polarssl/ecp.h b/include/polarssl/ecp.h
index 96c135b..a875d7e 100644
--- a/include/polarssl/ecp.h
+++ b/include/polarssl/ecp.h
@@ -210,6 +210,20 @@
const char *gx, const char *gy, const char *n);
/**
+ * \brief Export a point into unsigned binary data, uncompressed
+ *
+ * \param grp Group the point belongs to
+ * \param P Point to export
+ * \param olen Length of the actual ouput
+ * \param buf Output buffer
+ * \param buflen Length of the output buffer
+ *
+ * \return 0 if successful, or POLARSSL_ERR_ECP_GENERIC
+ */
+int ecp_write_binary( const ecp_group *grp, const ecp_point *P,
+ size_t *olen, unsigned char *buf, size_t buflen );
+
+/**
* \brief Set a group using well-known domain parameters
*
* \param grp Destination group