Add md/shaXXX_clone() API
Will be used in the SSL/TLS modules
diff --git a/include/mbedtls/sha1.h b/include/mbedtls/sha1.h
index 74fb855..e8bd65e 100644
--- a/include/mbedtls/sha1.h
+++ b/include/mbedtls/sha1.h
@@ -67,6 +67,15 @@
void mbedtls_sha1_free( mbedtls_sha1_context *ctx );
/**
+ * \brief Clone (the state of) a SHA-1 context
+ *
+ * \param dst The destination context
+ * \param src The context to be cloned
+ */
+void mbedtls_sha1_clone( mbedtls_sha1_context *dst,
+ const mbedtls_sha1_context *src );
+
+/**
* \brief SHA-1 context setup
*
* \param ctx context to be initialized