From 3ca180b25e8df252fc16f802cfdc27496e307830 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 1 Oct 2013 22:00:50 +0200 Subject: cipher: Simplify the cipher dispatcher cipher.c. * src/gcrypt-module.h (gcry_cipher_spec_t): Move to ... * src/cipher-proto.h (gcry_cipher_spec_t): here. Merge with cipher_extra_spec_t. Add fields ALGO and FLAGS. Set these fields in all cipher modules. * cipher/cipher.c: Change most code to replace the former module system by a simpler system to gain information about the algorithms. (disable_pubkey_algo): Simplified. Not anymore thread-safe, though. * cipher/md.c (_gcry_md_selftest): Use correct structure. Not a real problem because both define the same function as their first field. * cipher/pubkey.c (_gcry_pk_selftest): Take care of the disabled flag. Signed-off-by: Werner Koch --- cipher/gost28147.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cipher/gost28147.c') diff --git a/cipher/gost28147.c b/cipher/gost28147.c index c669148d..2bda8689 100644 --- a/cipher/gost28147.c +++ b/cipher/gost28147.c @@ -227,6 +227,7 @@ gost_decrypt_block (void *c, byte *outbuf, const byte *inbuf) gcry_cipher_spec_t _gcry_cipher_spec_gost28147 = { + GCRY_CIPHER_GOST28147, {0, 0}, "GOST28147", NULL, NULL, 8, 256, sizeof (GOST28147_context), gost_setkey, -- cgit v1.2.1