chiark
/
gitweb
/
~ian
/
chiark-tcl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hbytes and crypto compile now
[chiark-tcl.git]
/
crypto
/
crypto.h
diff --git
a/crypto/crypto.h
b/crypto/crypto.h
index 82efb6112e58d659fe40130e9ca6ccba45d91b09..335063114cf5d596bd6da4be6db708888ab07857 100644
(file)
--- a/
crypto/crypto.h
+++ b/
crypto/crypto.h
@@
-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);
/* from crypto.c */
void memxor(Byte *dest, const Byte *src, int l);
@@
-7,7
+15,7
@@
typedef struct {
int pad, use_algname;
} PadOp;
int pad, use_algname;
} PadOp;
-extern Tcl_ObjType blockcipherkey_type;
+extern Tcl_ObjType
cht_
blockcipherkey_type;
/* from algtables.c */
/* from algtables.c */
@@
-25,7
+33,7
@@
typedef struct {
void (*oneshot)(void *digest, const void *data, int len);
} HashAlgInfo;
void (*oneshot)(void *digest, const void *data, int len);
} HashAlgInfo;
-extern const HashAlgInfo
hashalginfo
s[];
+extern const HashAlgInfo
cht_hashalginfo_entrie
s[];
typedef struct {
void (*make_schedule)(void *schedule, const void *key, int keylen);
typedef struct {
void (*make_schedule)(void *schedule, const void *key, int keylen);
@@
-40,7
+48,7
@@
typedef struct {
BlockCipherPerDirectionInfo encrypt, decrypt;
} BlockCipherAlgInfo;
BlockCipherPerDirectionInfo encrypt, decrypt;
} BlockCipherAlgInfo;
-extern const BlockCipherAlgInfo
blockcipheralginfo
s[];
+extern const BlockCipherAlgInfo
cht_blockcipheralginfo_entrie
s[];
/* from bcmode.c */
/* from bcmode.c */
@@
-73,5
+81,8
@@
typedef struct {
const void *sch);
} BlockCipherModeInfo;
const void *sch);
} BlockCipherModeInfo;
-extern const BlockCipherModeInfo blockciphermodeinfos[];
+extern const BlockCipherModeInfo cht_blockciphermodeinfo_entries[];
+
+#include "crypto+tcmdif.h"
+#endif /*CRYPTO_H*/