X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fsha1.c;h=08e68b3397083b4fba821b9e677f446ef90b209b;hb=77c84c65dc22afe21bc52d95cd3996b8e1c7d065;hp=304cbabca8f4703b3776d194e626f6cb24272228;hpb=031256ad2e123eec58521f8e3eb9496c197641d2;p=libucw.git diff --git a/ucw/sha1.c b/ucw/sha1.c index 304cbabc..08e68b33 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 @@ -281,14 +281,14 @@ sha1_hash_buffer(byte *outbuf, const byte *buffer, uns length) sha1_init(&hd); sha1_update(&hd, buffer, length); - memcpy(outbuf, sha1_final(&hd), 20); + memcpy(outbuf, sha1_final(&hd), SHA1_SIZE); } #ifdef TEST #include #include -#include "ucw/string.h" +#include int main(void) {