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);