X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=blobdiff_plain;f=hash.h;fp=hash.h;h=6244d081e178c69281eb6c3b2dfbcd0e38cfbeaa;hp=0feee8430addb7d73635ed28767788c9c36c2446;hb=24b877cf29cefb2d8b02029e2f10ccbaccf472f5;hpb=d032b723ee4b7d25ec9be9387e2cc1fa04ec3190 diff --git a/hash.h b/hash.h index 0feee84..6244d08 100644 --- a/hash.h +++ b/hash.h @@ -11,7 +11,11 @@ /** hash arrays are always unsigned char. */ #define HASH_TYPE unsigned char -#include "sha1.h" +/** Size of the hash value in bytes. */ +#define HASH_SIZE 20 + +void sha1_hash(const char *data, unsigned long len, unsigned char *sha1); + /** Our own sha1 implementation, see sha1.c. */ #define hash_function sha1_hash