summaryrefslogtreecommitdiff
path: root/cipher/gostr3411-94.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/gostr3411-94.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/gostr3411-94.c')
-rw-r--r--cipher/gostr3411-94.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cipher/gostr3411-94.c b/cipher/gostr3411-94.c
index 368fc015..12672165 100644
--- a/cipher/gostr3411-94.c
+++ b/cipher/gostr3411-94.c
@@ -277,6 +277,7 @@ gost3411_read (void *context)
}
gcry_md_spec_t _gcry_digest_spec_gost3411_94 =
{
+ GCRY_MD_GOSTR3411_94, {0, 0},
"GOSTR3411_94", NULL, 0, NULL, 32,
gost3411_init, _gcry_md_block_write, gost3411_final, gost3411_read,
sizeof (GOSTR3411_CONTEXT)