Add RIPEMD-160 to the generic MD layer
diff --git a/include/polarssl/md.h b/include/polarssl/md.h
index eecf781..424b89f 100644
--- a/include/polarssl/md.h
+++ b/include/polarssl/md.h
@@ -58,6 +58,7 @@
POLARSSL_MD_SHA256,
POLARSSL_MD_SHA384,
POLARSSL_MD_SHA512,
+ POLARSSL_MD_RMD160,
} md_type_t;
#if defined(POLARSSL_SHA512_C)
diff --git a/include/polarssl/md_wrap.h b/include/polarssl/md_wrap.h
index a41c875..c4e2e45 100644
--- a/include/polarssl/md_wrap.h
+++ b/include/polarssl/md_wrap.h
@@ -45,6 +45,9 @@
#if defined(POLARSSL_MD5_C)
extern const md_info_t md5_info;
#endif
+#if defined(POLARSSL_RMD160_C)
+extern const md_info_t rmd160_info;
+#endif
#if defined(POLARSSL_SHA1_C)
extern const md_info_t sha1_info;
#endif
diff --git a/include/polarssl/rmd160.h b/include/polarssl/rmd160.h
index c8fe119..e9e5f7d 100644
--- a/include/polarssl/rmd160.h
+++ b/include/polarssl/rmd160.h
@@ -160,6 +160,9 @@
*/
int rmd160_self_test( int verbose );
+/* Internal use */
+void rmd160_process( rmd160_context *ctx, const unsigned char data[64] );
+
#ifdef __cplusplus
}
#endif