diff options
author | Werner Koch <wk@gnupg.org> | 2013-10-02 13:39:47 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2013-10-02 13:39:47 +0200 |
commit | 0d39997932617ba20656f8bcc230ba744b76c87e (patch) | |
tree | b5c52e2190f11703285b41f48ecc21a91dd4c579 /cipher/whirlpool.c | |
parent | 3ca180b25e8df252fc16f802cfdc27496e307830 (diff) | |
download | libgcrypt-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/whirlpool.c')
-rw-r--r-- | cipher/whirlpool.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cipher/whirlpool.c b/cipher/whirlpool.c index fa632f9e..168c38f4 100644 --- a/cipher/whirlpool.c +++ b/cipher/whirlpool.c @@ -1351,6 +1351,7 @@ whirlpool_read (void *ctx) gcry_md_spec_t _gcry_digest_spec_whirlpool = { + GCRY_MD_WHIRLPOOL, {0, 0}, "WHIRLPOOL", NULL, 0, NULL, 64, whirlpool_init, whirlpool_write, whirlpool_final, whirlpool_read, sizeof (whirlpool_context_t) |