X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-tcl.git;a=blobdiff_plain;f=crypto%2Fcrypto.h;h=335063114cf5d596bd6da4be6db708888ab07857;hp=82efb6112e58d659fe40130e9ca6ccba45d91b09;hb=288c17549e4d409b60147b6eb8444e72c0eea4e2;hpb=da1c2c3cbb87a600f19e250f93ef9fa4f89844fc diff --git a/crypto/crypto.h b/crypto/crypto.h index 82efb61..3350631 100644 --- 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); @@ -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*/