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/tiger.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/tiger.c')
-rw-r--r-- | cipher/tiger.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cipher/tiger.c b/cipher/tiger.c index df16098e..a70a3f2c 100644 --- a/cipher/tiger.c +++ b/cipher/tiger.c @@ -810,6 +810,7 @@ tiger_read( void *context ) an OID anymore because that would not be correct. */ gcry_md_spec_t _gcry_digest_spec_tiger = { + GCRY_MD_TIGER, {0, 0}, "TIGER192", NULL, 0, NULL, 24, tiger_init, _gcry_md_block_write, tiger_final, tiger_read, sizeof (TIGER_CONTEXT) @@ -832,6 +833,7 @@ static gcry_md_oid_spec_t oid_spec_tiger1[] = gcry_md_spec_t _gcry_digest_spec_tiger1 = { + GCRY_MD_TIGER1, {0, 0}, "TIGER", asn1, DIM (asn1), oid_spec_tiger1, 24, tiger1_init, _gcry_md_block_write, tiger_final, tiger_read, sizeof (TIGER_CONTEXT) @@ -842,6 +844,7 @@ gcry_md_spec_t _gcry_digest_spec_tiger1 = /* This is TIGER2 which usues a changed padding algorithm. */ gcry_md_spec_t _gcry_digest_spec_tiger2 = { + GCRY_MD_TIGER2, {0, 0}, "TIGER2", NULL, 0, NULL, 24, tiger2_init, _gcry_md_block_write, tiger_final, tiger_read, sizeof (TIGER_CONTEXT) |