X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=crypto%2Falgtables.c;h=bb111dea4e2cc958e778fba123b952d886c8b61d;hb=da1c2c3cbb87a600f19e250f93ef9fa4f89844fc;hp=8d7b0a27215a412ac71fd4100167e16ce2a5991c;hpb=9af88eb2e41e2b6a73643948e31262eee08c5400;p=chiark-tcl.git diff --git a/crypto/algtables.c b/crypto/algtables.c index 8d7b0a2..bb111de 100644 --- a/crypto/algtables.c +++ b/crypto/algtables.c @@ -2,6 +2,7 @@ */ #include +#include #include #include "hbytes.h" @@ -26,10 +27,10 @@ name##_set_key(sch, keylen, key); \ } \ static void alg_##name##_encr(const void *sch, const void *in, void *out) { \ - ##name##_encrypt((void*)sch, NAME##_BLOCK_SIZE, out, in); \ + name##_encrypt((void*)sch, NAME##_BLOCK_SIZE, out, in); \ } \ static void alg_##name##_decr(const void *sch, const void *in, void *out) { \ - ##name##_decrypt((void*)sch, NAME##_BLOCK_SIZE, out, in); \ + name##_decrypt((void*)sch, NAME##_BLOCK_SIZE, out, in); \ } NETTLE_BLOCKCIPHERS #undef DO @@ -39,7 +40,6 @@ const BlockCipherAlgInfo blockcipheralginfos[]= { #define ALIAS(alias,name,NAME) \ { #alias, NAME##_BLOCK_SIZE, sizeof(struct name##_ctx), \ NAME##_MIN_KEY_SIZE, NAME##_MAX_KEY_SIZE, \ - 0, \ { alg_##name##_makekey, alg_##name##_encr }, \ { alg_##name##_makekey, alg_##name##_decr } \ },