Introduce getter for MD handle from MD context
diff --git a/include/mbedtls/md.h b/include/mbedtls/md.h
index 40624e4..111427f 100644
--- a/include/mbedtls/md.h
+++ b/include/mbedtls/md.h
@@ -104,6 +104,12 @@
     void *hmac_ctx;
 } mbedtls_md_context_t;
 
+static inline mbedtls_md_handle_t mbedtls_md_get_handle(
+    struct mbedtls_md_context_t const *ctx )
+{
+    return( ctx->md_info );
+}
+
 /**
  * \brief           This function returns the list of digests supported by the
  *                  generic digest module.