On data error, prints the number of different bits

This commit is contained in:
Andrea Mazzoleni 2015-09-12 15:19:52 +02:00
parent 167d1edfec
commit 3bf691ff7d
6 changed files with 41 additions and 14 deletions

View file

@ -123,6 +123,11 @@ void memhash(unsigned kind, const unsigned char* seed, void* digest, const void*
*/
const char* hash_config_name(unsigned kind);
/**
* Count the number of different bits in the two buffers.
*/
unsigned memdiff(const unsigned char* data1, const unsigned char* data2, size_t size);
/****************************************************************************/
/* lock */