summaryrefslogtreecommitdiffstats
path: root/cipher/rmd160.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1997-12-01 11:33:23 +0100
committerWerner Koch <wk@gnupg.org>1997-12-01 11:33:23 +0100
commit5c1cca042e6bc0de22c7913f08457c7b8a46e592 (patch)
tree234246f67cf2e7deb79b94e7491fdd7111c1c65e /cipher/rmd160.c
parentImproved prime number test (diff)
downloadgnupg2-5c1cca042e6bc0de22c7913f08457c7b8a46e592.tar.xz
gnupg2-5c1cca042e6bc0de22c7913f08457c7b8a46e592.zip
List and check sigs works
Diffstat (limited to 'cipher/rmd160.c')
-rw-r--r--cipher/rmd160.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/cipher/rmd160.c b/cipher/rmd160.c
index 9a882fc5e..2c583d576 100644
--- a/cipher/rmd160.c
+++ b/cipher/rmd160.c
@@ -25,6 +25,7 @@
#include <assert.h>
#include "util.h"
#include "memory.h"
+#include "cipher.h" /* grrrr */
#include "rmd.h"
/*********************************
@@ -261,6 +262,18 @@ rmd160_copy( RMDHANDLE a )
return b;
}
+
+/* BAD Kludge!!! */
+MD_HANDLE *
+rmd160_copy2md( RMDHANDLE a )
+{
+ MD_HANDLE *md = md_makecontainer( DIGEST_ALGO_RMD160 );
+ md->u.rmd = rmd160_copy( a );
+ return md;
+}
+
+
+
void
rmd160_close(RMDHANDLE hd)
{