chiark / gitweb /
hbytes and crypto compile now
[chiark-tcl.git] / crypto / crypto.h
index 82efb6112e58d659fe40130e9ca6ccba45d91b09..335063114cf5d596bd6da4be6db708888ab07857 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ */
+
+#ifndef CRYPTO_H
+#define CRYPTO_H
+
+#include "chiark-tcl.h"
+
 /* from crypto.c */
 
 void memxor(Byte *dest, const Byte *src, int l);
@@ -7,7 +15,7 @@ typedef struct {
   int pad, use_algname;
 } PadOp;
 
-extern Tcl_ObjType blockcipherkey_type;
+extern Tcl_ObjType cht_blockcipherkey_type;
 
 /* from algtables.c */
 
@@ -25,7 +33,7 @@ typedef struct {
   void (*oneshot)(void *digest, const void *data, int len);
 } HashAlgInfo;
 
-extern const HashAlgInfo hashalginfos[];
+extern const HashAlgInfo cht_hashalginfo_entries[];
 
 typedef struct {
   void (*make_schedule)(void *schedule, const void *key, int keylen);
@@ -40,7 +48,7 @@ typedef struct {
   BlockCipherPerDirectionInfo encrypt, decrypt;
 } BlockCipherAlgInfo;
 
-extern const BlockCipherAlgInfo blockcipheralginfos[];
+extern const BlockCipherAlgInfo cht_blockcipheralginfo_entries[];
 
 /* from bcmode.c */
 
@@ -73,5 +81,8 @@ typedef struct {
                     const void *sch);
 } BlockCipherModeInfo;
 
-extern const BlockCipherModeInfo blockciphermodeinfos[];
+extern const BlockCipherModeInfo cht_blockciphermodeinfo_entries[];
+
+#include "crypto+tcmdif.h"
 
+#endif /*CRYPTO_H*/