md: Simplify the message digest dispatcher md.c.
authorWerner Koch <wk@gnupg.org>
Wed, 2 Oct 2013 11:39:47 +0000 (13:39 +0200)
committerWerner Koch <wk@gnupg.org>
Wed, 2 Oct 2013 11:39:47 +0000 (13:39 +0200)
commit0d39997932617ba20656f8bcc230ba744b76c87e
treeb5c52e2190f11703285b41f48ecc21a91dd4c579
parent3ca180b25e8df252fc16f802cfdc27496e307830
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>
15 files changed:
cipher/crc.c
cipher/gostr3411-94.c
cipher/md.c
cipher/md4.c
cipher/md5.c
cipher/rmd160.c
cipher/sha1.c
cipher/sha256.c
cipher/sha512.c
cipher/stribog.c
cipher/tiger.c
cipher/whirlpool.c
src/cipher-proto.h
src/cipher.h
src/gcrypt-module.h