summaryrefslogtreecommitdiff
path: root/cipher/md5.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2013-10-02 13:39:47 +0200
committerWerner Koch <wk@gnupg.org>2013-10-02 13:39:47 +0200
commit0d39997932617ba20656f8bcc230ba744b76c87e (patch)
treeb5c52e2190f11703285b41f48ecc21a91dd4c579 /cipher/md5.c
parent3ca180b25e8df252fc16f802cfdc27496e307830 (diff)
downloadlibgcrypt-0d39997932617ba20656f8bcc230ba744b76c87e.tar.gz
md: Simplify the message digest dispatcher md.c.
* src/gcrypt-module.h (gcry_md_spec_t): Move to ... * src/cipher-proto.h: here. Merge with md_extra_spec_t. Add fields ALGO and FLAGS. Set these fields in all digest modules. * cipher/md.c: Change most code to replace the former module system by a simpler system to gain information about the algorithms. Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'cipher/md5.c')
-rw-r--r--cipher/md5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cipher/md5.c b/cipher/md5.c
index db0f3150..1b6ad482 100644
--- a/cipher/md5.c
+++ b/cipher/md5.c
@@ -287,6 +287,7 @@ static gcry_md_oid_spec_t oid_spec_md5[] =
gcry_md_spec_t _gcry_digest_spec_md5 =
{
+ GCRY_MD_MD5, {0, 1},
"MD5", asn, DIM (asn), oid_spec_md5, 16,
md5_init, _gcry_md_block_write, md5_final, md5_read,
sizeof (MD5_CONTEXT)