X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fsha1.c;h=58129af20cee784866ae8b33242406d48377b9d2;hb=156301aa8c7fd24d49ed27cfbd1afc10ccb7bc58;hp=5a547cbbafb3c0f34293a2e27c5bad714b2cffe7;hpb=a4fe009d3366b0a3e119713b0ecc7fc0070efdfa;p=libucw.git diff --git a/ucw/sha1.c b/ucw/sha1.c index 5a547cbb..58129af2 100644 --- a/ucw/sha1.c +++ b/ucw/sha1.c @@ -11,9 +11,9 @@ * of the GNU Lesser General Public License. */ -#include "ucw/lib.h" -#include "ucw/sha1.h" -#include "ucw/unaligned.h" +#include +#include +#include #include @@ -170,7 +170,7 @@ transform(sha1_context *hd, const byte *data) * of INBUF with length INLEN. */ void -sha1_update(sha1_context *hd, const byte *inbuf, uns inlen) +sha1_update(sha1_context *hd, const byte *inbuf, uint inlen) { if( hd->count == 64 ) /* flush the buffer */ { @@ -275,7 +275,7 @@ sha1_final(sha1_context *hd) * into outbuf which must have a size of 20 bytes. */ void -sha1_hash_buffer(byte *outbuf, const byte *buffer, uns length) +sha1_hash_buffer(byte *outbuf, const byte *buffer, uint length) { sha1_context hd; @@ -288,7 +288,7 @@ sha1_hash_buffer(byte *outbuf, const byte *buffer, uns length) #include #include -#include "ucw/string.h" +#include int main(void) {