Add hamming distance function

This commit is contained in:
Dimitri Lozeve 2020-06-03 22:15:57 +02:00
parent 55fba9cfd2
commit 886f1d45cb
5 changed files with 123 additions and 0 deletions

View file

@ -8,5 +8,6 @@ size_t hex_to_bytes(unsigned char *out, const char hex[static 1]);
unsigned char *bytes_to_base64(unsigned char *out,
const unsigned char in[static 1], size_t len);
double frequency_score(unsigned char *buf, size_t len);
unsigned int hamming(const char *s1, const char *s2);
#endif /* UTILS_H */