chiark / gitweb /
actually clean out unwanted file handlers; docuemtn -reverse options in right place
[chiark-tcl.git] / crypto / algtables.c
index 8d7b0a27215a412ac71fd4100167e16ce2a5991c..bb111dea4e2cc958e778fba123b952d886c8b61d 100644 (file)
@@ -2,6 +2,7 @@
  */
 
 #include <stdint.h>
+#include <stddef.h>
 #include <netinet/in.h>
 
 #include "hbytes.h"
     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 }                        \
   },