2003-07-21 Moritz Schulte <moritz@g10code.com>
[libgcrypt.git] / cipher / rmd160.c
index a0b11fc..5b3ea2d 100644 (file)
@@ -543,9 +543,16 @@ static byte asn[15] = /* Object ID is 1.3.36.3.2.1 */
   { 0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x24, 0x03,
     0x02, 0x01, 0x05, 0x00, 0x04, 0x14 };
 
-GcryDigestSpec digest_spec_rmd160 =
+static gcry_md_oid_spec_t oid_spec_rmd160[] =
   {
-    "RIPEMD160", GCRY_MD_RMD160, asn, DIM (asn), 20,
+    /* rsaSignatureWithripemd160 */
+    { "1.3.36.3.3.1.2" },
+    { NULL },
+  };
+
+gcry_md_spec_t digest_spec_rmd160 =
+  {
+    "RIPEMD160", asn, DIM (asn), oid_spec_rmd160, 20,
     _gcry_rmd160_init, rmd160_write, rmd160_final, rmd160_read,
     sizeof (RMD160_CONTEXT)
   };