Mercurial > dropbear
comparison mycrypt_hash.h @ 147:c2b93763dac9 libtomcrypt
Fixes for it to compile and work nicely with Dropbear.
In particular, OS X's 'ar' doesn't seem to like arrays
which don't have initialising values.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 19 Dec 2004 16:23:32 +0000 |
parents | 5d99163f7e32 |
children |
comparison
equal
deleted
inserted
replaced
144:7ed585a2c53b | 147:c2b93763dac9 |
---|---|
125 extern struct _hash_descriptor { | 125 extern struct _hash_descriptor { |
126 char *name; | 126 char *name; |
127 unsigned char ID; | 127 unsigned char ID; |
128 unsigned long hashsize; /* digest output size in bytes */ | 128 unsigned long hashsize; /* digest output size in bytes */ |
129 unsigned long blocksize; /* the block size the hash uses */ | 129 unsigned long blocksize; /* the block size the hash uses */ |
130 #if 0 | |
131 /*matt - we don't need these and they make the intialisers more ugly.*/ | |
130 unsigned char DER[64]; /* DER encoded identifier */ | 132 unsigned char DER[64]; /* DER encoded identifier */ |
131 unsigned long DERlen; /* length of DER encoding */ | 133 unsigned long DERlen; /* length of DER encoding */ |
134 #endif | |
132 int (*init)(hash_state *); | 135 int (*init)(hash_state *); |
133 int (*process)(hash_state *, const unsigned char *, unsigned long); | 136 int (*process)(hash_state *, const unsigned char *, unsigned long); |
134 int (*done)(hash_state *, unsigned char *); | 137 int (*done)(hash_state *, unsigned char *); |
135 int (*test)(void); | 138 int (*test)(void); |
136 } hash_descriptor[]; | 139 } hash_descriptor[]; |