}
unsigned char output[hashbitlen/4];
- Hash(hashbitlen, (unsigned char*) readbuf, total_readed, output);
+ Hash(hashbitlen, (unsigned char*) readbuf, total_readed * 8, output);
free(readbuf);
{
unsigned char output[hashbitlen/4];
char digest[hashbitlen/4 + 1];
- Hash(hashbitlen, s, strlen(s), output);
+ Hash(hashbitlen, s, strlen(s) * 8, output);
hash2hexstr(output, digest);
printf("%s -%s\n", digest, s);
}