diff options
Diffstat (limited to 'cipher/md4.c')
-rw-r--r-- | cipher/md4.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cipher/md4.c b/cipher/md4.c index 42f85e38..4a3edd76 100644 --- a/cipher/md4.c +++ b/cipher/md4.c @@ -303,9 +303,16 @@ static byte asn[18] = /* Object ID is 1.2.840.113549.2.4 */ { 0x30, 0x20, 0x30, 0x0c, 0x06, 0x08, 0x2a, 0x86,0x48, 0x86, 0xf7, 0x0d, 0x02, 0x04, 0x05, 0x00, 0x04, 0x10 }; +static gcry_md_oid_spec_t oid_spec_md4[] = + { + /* iso.member-body.us.rsadsi.digestAlgorithm.md4 */ + { "1.2.840.113549.2.4" }, + { NULL }, + }; + gcry_md_spec_t digest_spec_md4 = { - "MD4", asn, DIM (asn), 16, + "MD4", asn, DIM (asn), oid_spec_md4,16, md4_init, md4_write, md4_final, md4_read, sizeof (MD4_CONTEXT) }; |