chiark / gitweb /
hmac seems to work
[chiark-tcl.git] / hbytes / hbytes.h
index c5ffc06bbf0da4cd07826a2f1bdf9e6cb0a0c3b5..15abca2544407f8e5c7194888b7ec27787d36e98 100644 (file)
@@ -140,13 +140,18 @@ typedef struct {
 
 Tcl_ObjType blockcipherkey_type;
 
-/* from hash.c */
+/* from algtables.c */
 
 typedef struct {
-  int blocksize, hashsize;
+  const char *name;
+  int hashsize, blocksize, statesize;
+  void (*init)(void *state);
+  void (*update)(void *state, const Byte *data, int len);
+  void (*final)(void *state, Byte *digest);
+  void (*oneshot)(Byte *digest, const Byte *data, int len);
 } HashAlgInfo;
 
-/* from blockciph.c */
+extern const HashAlgInfo hashalginfos[];
 
 typedef struct {
   void (*make_schedule)(void *schedule, const Byte *key, int keylen);